File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,34 +10,34 @@ def test_assert_truth(self):
10
10
"""
11
11
We shall contemplate truth by testing reality, via asserts.
12
12
"""
13
- self .assertTrue (False ) # This should be true
13
+ self .assertTrue (True ) # This should be true
14
14
15
15
def test_assert_with_message (self ):
16
16
"""
17
17
Enlightenment may be more easily achieved with appropriate messages.
18
18
"""
19
- self .assertTrue (False , "This should be true -- Please fix this" )
19
+ self .assertTrue (True , "This should be true -- Please fix this" )
20
20
21
21
def test_fill_in_values (self ):
22
22
"""
23
23
Sometimes we will ask you to fill in the values
24
24
"""
25
- self .assertEqual (__ , 1 + 1 )
25
+ self .assertEqual (2 , 1 + 1 )
26
26
27
27
def test_assert_equality (self ):
28
28
"""
29
29
To understand reality, we must compare our expectations against
30
30
reality.
31
31
"""
32
- expected_value = __
32
+ expected_value = 2
33
33
actual_value = 1 + 1
34
34
self .assertTrue (expected_value == actual_value )
35
35
36
36
def test_a_better_way_of_asserting_equality (self ):
37
37
"""
38
38
Some ways of asserting equality are better than others.
39
39
"""
40
- expected_value = __
40
+ expected_value = 2
41
41
actual_value = 1 + 1
42
42
43
43
self .assertEqual (expected_value , actual_value )
@@ -48,4 +48,4 @@ def test_that_unittest_asserts_work_the_same_way_as_python_asserts(self):
48
48
"""
49
49
50
50
# This throws an AssertionError exception
51
- assert False
51
+ assert True
You can’t perform that action at this time.
0 commit comments