Ticket #24751: 24751-test.diff

File 24751-test.diff, 692 bytes (added by Tim Graham, 5 years ago)
  • tests/postgres_tests/test_hstore.py

    diff --git a/tests/postgres_tests/test_hstore.py b/tests/postgres_tests/test_hstore.py
    index ed88e2f..8c4172f 100644
    a b class TestQuerying(PostgresSQLTestCase): 
    114114            self.objs[:3]
    115115        )
    116116
     117    def test_key_isnull(self):
     118        obj = HStoreModel.objects.create(field={'a': None})
     119        self.assertSequenceEqual(
     120            HStoreModel.objects.filter(field__a__isnull=True),
     121            [obj]
     122        )
     123
    117124
    118125class TestSerialization(PostgresSQLTestCase):
    119126    test_data = '[{"fields": {"field": "{\\"a\\": \\"b\\"}"}, "model": "postgres_tests.hstoremodel", "pk": null}]'
Back to Top