Added failure case for test_isinstance.

This commit is contained in:
Donne Martin 2015-01-24 11:04:38 -05:00
parent c25b655dc1
commit 5c7c6e10b6

View File

@ -23,6 +23,7 @@ class TestUtil():
assert_equal(isinstance(7, (int)), True)
assert_equal(isinstance(7.5, (int, float)), True)
assert_equal(isinstance('foo', (int, float, str)), True)
assert_equal(isinstance('foo', (int)), False)
def test_attributes(self):
"""Functions getattr, hasattr, setattr can be used to write generic,