diff options
-rw-r--r-- | unit_tests/test_utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unit_tests/test_utils.py b/unit_tests/test_utils.py index 13ccf6f..2bd837c 100644 --- a/unit_tests/test_utils.py +++ b/unit_tests/test_utils.py @@ -113,6 +113,10 @@ class TestUtils(unittest.TestCase): self.assertEqual(test_address(foo_mtc), (me, __name__, 'Foo.bar')) + # verify that we fail on an invalid input type + self.assertRaises(TypeError, test_address, 1) + self.assertRaises(TypeError, test_address, "foo") + def test_isclass_detects_classes(self): class TC(unittest.TestCase): pass |