mirror of
https://github.com/donnemartin/data-science-ipython-notebooks.git
synced 2024-03-22 13:30:56 +08:00
Added failure case for test_isinstance.
This commit is contained in:
parent
c25b655dc1
commit
5c7c6e10b6
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user