Skip to content

Commit 979fe7c

Browse files
committed
None
1 parent 096d85d commit 979fe7c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

python2/koans/about_none.py

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

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

1717
def test_none_is_universal(self):
1818
"There is only one None"
19-
self.assertEqual(__, None is None)
19+
self.assertEqual(True, None is None)
2020

2121
def test_what_exception_do_you_get_when_calling_nonexistent_methods(self):
2222
"""
@@ -33,15 +33,15 @@ def test_what_exception_do_you_get_when_calling_nonexistent_methods(self):
3333
None.some_method_none_does_not_know_about()
3434
except Exception as ex:
3535
# What exception has been caught?
36-
self.assertEqual(__, ex.__class__.__name__)
36+
self.assertEqual('AttributeError', ex.__class__.__name__)
3737

3838
# What message was attached to the exception?
3939
# (HINT: replace __ with part of the error message.)
40-
self.assertMatch(__, ex.args[0])
40+
self.assertMatch('NoneType', ex.args[0])
4141

4242
def test_none_is_distinct(self):
4343
"""
4444
None is distinct from other things which are False.
4545
"""
46-
self.assertEqual(____, None is not 0)
47-
self.assertEqual(____, None is not False)
46+
self.assertEqual(True, None is not 0)
47+
self.assertEqual(True, None is not False)

0 commit comments

Comments
 (0)