summaryrefslogtreecommitdiff
path: root/unit_tests/test_utils.py
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2012-09-29 05:12:56 -0400
committerJohn Szakmeister <john@szakmeister.net>2012-09-29 05:12:56 -0400
commit671c8148413b1c1f2b9c8a1ca649f46ead608586 (patch)
tree7918a1ed1fa5d0f7ecc5d7df7f194611cb568654 /unit_tests/test_utils.py
parentfccc849746ed91b392de0fc821bd448cbd603d47 (diff)
downloadnose-671c8148413b1c1f2b9c8a1ca649f46ead608586.tar.gz
test_utils: add some edge cases to test_test_address
Diffstat (limited to 'unit_tests/test_utils.py')
-rw-r--r--unit_tests/test_utils.py4
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