Skip to content

Commit 86b207c

Browse files
author
Matt Cottingham
committed
Third koan
1 parent c1974cf commit 86b207c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

python3/koans/about_none.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ class AboutNone(Koan):
1111

1212
def test_none_is_an_object(self):
1313
"Unlike NULL in a lot of languages"
14-
self.assertEqual(__, isinstance(None, object))
14+
self.assertEqual(True, isinstance(None, object))
1515

1616
def test_none_is_universal(self):
1717
"There is only one None"
18-
self.assertEqual(____, None is None)
18+
self.assertEqual(True, None is None)
1919

2020
def test_what_exception_do_you_get_when_calling_nonexistent_methods(self):
2121
"""
@@ -37,15 +37,15 @@ def test_what_exception_do_you_get_when_calling_nonexistent_methods(self):
3737
#
3838
# http://bit.ly/__class__
3939

40-
self.assertEqual(__, ex2.__class__)
40+
self.assertEqual(AttributeError, ex2.__class__)
4141

4242
# What message was attached to the exception?
4343
# (HINT: replace __ with part of the error message.)
44-
self.assertRegex(ex2.args[0], __)
44+
self.assertRegex(ex2.args[0], "object has no attribute")
4545

4646
def test_none_is_distinct(self):
4747
"""
4848
None is distinct from other things which are False.
4949
"""
50-
self.assertEqual(__, None is not 0)
51-
self.assertEqual(__, None is not False)
50+
self.assertEqual(True, None is not 0)
51+
self.assertEqual(True, None is not False)

0 commit comments

Comments
 (0)