summaryrefslogtreecommitdiff
path: root/unit_tests
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2012-12-10 04:55:21 -0500
committerJohn Szakmeister <john@szakmeister.net>2012-12-10 04:55:21 -0500
commiteb35988d7ca58cf209254eaa9eafb266574e98d7 (patch)
tree659c82d12860e4ce09f096dfdcf8a04e060d67f0 /unit_tests
parentd19a5c28bff686d2876e5f6ae56ade2e3d719503 (diff)
parent6011ea44098b208ee040cae3175109a58046cc40 (diff)
downloadnose-eb35988d7ca58cf209254eaa9eafb266574e98d7.tar.gz
Merge pull request #563
Diffstat (limited to 'unit_tests')
-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