diff options
Diffstat (limited to 'tests/model_fields/tests.py')
| -rw-r--r-- | tests/model_fields/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py index 897359c0cf..a9ce43cae6 100644 --- a/tests/model_fields/tests.py +++ b/tests/model_fields/tests.py @@ -695,6 +695,11 @@ class GenericIPAddressFieldTests(test.TestCase): o = GenericIPAddress.objects.get() self.assertIsNone(o.ip) + def test_save_load(self): + instance = GenericIPAddress.objects.create(ip='::1') + loaded = GenericIPAddress.objects.get() + self.assertEqual(loaded.ip, instance.ip) + class PromiseTest(test.TestCase): def test_AutoField(self): |
