Skip to content

Commit 129fdd2

Browse files
author
Chaim-Leib Halbert
committed
fixed copy-paste errors in iso tests
1 parent 94bee57 commit 129fdd2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/conversions/iso8601_test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def test_bad_timedelta_to_iso(self):
184184
jsonify_timedelta('PT12H')
185185

186186
with self.assertRaises(AssertionError):
187-
jsonify_datetime('2014-06-19T17:03:17.361077-05:00')
187+
jsonify_timedelta('2014-06-19T17:03:17.361077-05:00')
188188

189189
with self.assertRaises(AssertionError):
190190
jsonify_timedelta(('bad', 'stuff'))
@@ -392,7 +392,7 @@ def test_datetime_to_iso(self):
392392
jsonify_datetime(pair[1]),
393393
)
394394

395-
def test_bad_iso_to_timedelta(self):
395+
def test_bad_iso_to_datetime(self):
396396
with self.assertRaises(ValueError):
397397
make_datetime('')
398398

@@ -414,8 +414,7 @@ def test_bad_iso_to_timedelta(self):
414414
# naive timestamps raise ValueError
415415
make_datetime('2014-06-19T16:40:22.293913')
416416

417-
418-
def test_bad_timedelta_to_iso(self):
417+
def test_bad_datetime_to_iso(self):
419418
with self.assertRaises(AssertionError):
420419
jsonify_datetime('2014-06-19T17:03:17.361077-05:00')
421420

0 commit comments

Comments
 (0)