Skip to content

Commit e2bd99a

Browse files
author
Roman Valls Guimera
committed
Reverting passing asserts
1 parent 1552734 commit e2bd99a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python2/koans/about_asserts.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,34 @@ def test_assert_truth(self):
1010
"""
1111
We shall contemplate truth by testing reality, via asserts.
1212
"""
13-
self.assertTrue(True) # This should be true
13+
self.assertTrue(False) # This should be true
1414

1515
def test_assert_with_message(self):
1616
"""
1717
Enlightenment may be more easily achieved with appropriate messages.
1818
"""
19-
self.assertTrue(True, "This should be true -- Please fix this")
19+
self.assertTrue(False, "This should be true -- Please fix this")
2020

2121
def test_fill_in_values(self):
2222
"""
2323
Sometimes we will ask you to fill in the values
2424
"""
25-
self.assertEqual(2, 1 + 1)
25+
self.assertEqual(__, 1 + 1)
2626

2727
def test_assert_equality(self):
2828
"""
2929
To understand reality, we must compare our expectations against
3030
reality.
3131
"""
32-
expected_value = 2
32+
expected_value = __
3333
actual_value = 1 + 1
3434
self.assertTrue(expected_value == actual_value)
3535

3636
def test_a_better_way_of_asserting_equality(self):
3737
"""
3838
Some ways of asserting equality are better than others.
3939
"""
40-
expected_value = 2
40+
expected_value = __
4141
actual_value = 1 + 1
4242

4343
self.assertEqual(expected_value, actual_value)
@@ -48,4 +48,4 @@ def test_that_unittest_asserts_work_the_same_way_as_python_asserts(self):
4848
"""
4949

5050
# This throws an AssertionError exception
51-
assert True
51+
assert False

0 commit comments

Comments
 (0)