Ticket #25021: ticket_25021_test.patch

File ticket_25021_test.patch, 672 bytes (added by Andriy Sokolovskiy, 9 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 34229bb..2ed66b5 100644
    a b class TestQuerying(PostgreSQLTestCase):  
    6767            self.objs[:2]
    6868        )
    6969
     70    def test_values_contains(self):
     71        obj = HStoreModel.objects.create(field={'foo': 'testing'})
     72        self.assertSequenceEqual(
     73            HStoreModel.objects.filter(field__values__contains=['test']),
     74            [obj]
     75        )
     76
    7077    def test_has_key(self):
    7178        self.assertSequenceEqual(
    7279            HStoreModel.objects.filter(field__has_key='c'),
Back to Top