summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Parise <jon@indelible.org>2012-10-26 14:48:03 -0700
committerJon Parise <jon@indelible.org>2012-10-26 14:48:03 -0700
commitdd5b7b8785dcc11b74b0c40e763e9780834a36d2 (patch)
treeff856e408dd75afb803ac9239d3c4a6c636f220d
parent0e670e140df102d461d803ada9508e314a204641 (diff)
downloadtimes-dd5b7b8785dcc11b74b0c40e763e9780834a36d2.tar.gz
Update the unit tests for the TypeError changes.
-rw-r--r--tests/test_times.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_times.py b/tests/test_times.py
index 3fedef9..b887c3d 100644
--- a/tests/test_times.py
+++ b/tests/test_times.py
@@ -102,7 +102,7 @@ class TestTimes(TestCase):
def test_to_universal_rejects_non_date_arguments(self):
"""to_universal rejects non-date arguments"""
- with self.assertRaises(ValueError):
+ with self.assertRaises(TypeError):
times.to_universal([1, 2, 3])
@@ -127,7 +127,7 @@ class TestTimes(TestCase):
def test_convert_non_numeric_from_unix(self):
"""from_unix refuses to accept non-numeric input"""
- with self.assertRaises(ValueError):
+ with self.assertRaises(TypeError):
times.from_unix('lol')
@@ -141,7 +141,7 @@ class TestTimes(TestCase):
def test_convert_non_numeric_to_unix(self):
"""to_unix refuses to accept non-numeric input"""
- with self.assertRaises(ValueError):
+ with self.assertRaises(TypeError):
times.to_unix('lol')