CS50P - Lecture 5 - Unit Tests
This is CS50P, CS50's Introduction to Programming with Python. Enroll for free at https://cs50.edx.org/python. Slides, source code, and more at https://cs50.harvard.edu/python. Playlist at https://www.youtube.com/playlist?list=PLhQjrBD2T3817j24-GogXmWqO5Q5vYy0V.
TABLE OF CONTENTS
00:00:00 - Introduction
00:00:24 - Unit Tests
00:01:15 - Testing calculator.py
00:10:20 - assert
00:12:18 - AssertionError
00:16:58 - pytest
00:28:38 - Categories of Tests
00:35:53 - Testing for Exceptions
00:38:13 - Side Effects and Testing
00:47:54 - Collections of Tests
00:50:16 - Conclusion
An introduction to p…
Watch on YouTube ↗
(saves to browser)
Chapters (11)
Introduction
0:24
Unit Tests
1:15
Testing calculator.py
10:20
assert
12:18
AssertionError
16:58
pytest
28:38
Categories of Tests
35:53
Testing for Exceptions
38:13
Side Effects and Testing
47:54
Collections of Tests
50:16
Conclusion
Playlist
Uploads from CS50 · CS50 · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Persistence
CS50
Hello, World: Hadi Partovi
CS50
CS50 Live, Episode 008
CS50
CS50 Live Outtakes
CS50
CS50 Live, Episode 009
CS50
Robotics
CS50
Content Distribution and Archival in a Digital Age
CS50
CS50x Conversation
CS50
Hello, World: Susan Wojcicki
CS50
60 Seconds of Virtual Reality at Valve
CS50
Harvard Tour, Widener Library
CS50
Harvard Tour, Harvard Yard
CS50
Camera Stabilization
CS50
CS50 2014, Coming Soon
CS50
CS50's ALS Ice Bucket Challenge
CS50
CS50 2014, Coming Soon
CS50
This is CS50 2014
CS50
CS50 Staff 2014
CS50
Extruding CS50 in 3D
CS50
Week 0
CS50
Week 1
CS50
Week 2
CS50
CS50 2014 - Week 0
CS50
CS50 2014 - Week 1
CS50
CS50 2014 - Week 2, continued
CS50
CS50 2014 - Week 3
CS50
CS50 2014 - Week 0, continued
CS50
Ansel in the Shoppe
CS50
Supersection 1, Less Comfortable
CS50
Supersection 1, More Comfortable
CS50
Section 2
CS50
CS50 2014 - Week 4
CS50
Section 3
CS50
Week 3, continued
CS50
CS50 2014 - Week 2
CS50
CS50 2014 - Week 5
CS50
Quiz 0 Review
CS50
Section 5
CS50
Section 4
CS50
CS50 2014 - Week 3, continued
CS50
CS50 2014 - Week 4, continued
CS50
CS50 2014 - Week 7
CS50
Week 4
CS50
Week 3
CS50
server
CS50
server, continued
CS50
CS50 2014 - Week 7, continued
CS50
CS50 2014 - Week 8
CS50
Section 7
CS50
Section 6
CS50
CS50 2014 - Week 8, continued
CS50
Week 8
CS50
Week 7
CS50
Week 9
CS50
Breaking Through The (Google) Glass Ceiling by Christopher Bartholomew
CS50
Introduction to Amazon Web Services by Leo Zhadanovsky
CS50
CS50 2014 - Week 9
CS50
How to Build Innovative Technologies by Abby Fichtner
CS50
Light Your World (with Hue Bulbs) by Dan Bradley
CS50
Building Dynamic Web Apps with Laravel by Eric Ouyang
CS50
DeepCamp AI