diff options
| author | Carlton Gibson | 2014-05-08 11:41:33 +0200 |
|---|---|---|
| committer | Carlton Gibson | 2014-05-08 11:41:33 +0200 |
| commit | 2768101441f75d53e5e911528a972e71b142583c (patch) | |
| tree | 934099fa35dc33aef79b027b1e2ccfe10e7c3220 | |
| parent | 591d5240da63f9e18d245425809cc16beaf5d9d9 (diff) | |
| parent | 0ff474d7c4882a31f8fb133caa82d0368b0406c2 (diff) | |
| download | django-rest-framework-2768101441f75d53e5e911528a972e71b142583c.tar.bz2 | |
Merge pull request #1576 from carltongibson/fix-#1575
Updated failing test from #1575
| -rw-r--r-- | rest_framework/tests/test_fields.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/tests/test_fields.py b/rest_framework/tests/test_fields.py index e127feef..894b5b3c 100644 --- a/rest_framework/tests/test_fields.py +++ b/rest_framework/tests/test_fields.py @@ -312,7 +312,7 @@ class DateTimeFieldTest(TestCase): f.from_native('04:61:59') except validators.ValidationError as e: self.assertEqual(e.messages, ["Datetime has wrong format. Use one of these formats instead: " - "YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HHMM|-HHMM|Z]"]) + "YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z]"]) else: self.fail("ValidationError was not properly raised") @@ -326,7 +326,7 @@ class DateTimeFieldTest(TestCase): f.from_native('04 -- 31') except validators.ValidationError as e: self.assertEqual(e.messages, ["Datetime has wrong format. Use one of these formats instead: " - "YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HHMM|-HHMM|Z]"]) + "YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z]"]) else: self.fail("ValidationError was not properly raised") |
