Example #1
0
 def test_deconstruction(self):
     index = BTreeIndex(fields=["title"], name="test_title_btree", fillfactor=80)
     path, args, kwargs = index.deconstruct()
     self.assertEqual(path, "django.contrib.postgres.indexes.BTreeIndex")
     self.assertEqual(args, ())
     self.assertEqual(
         kwargs, {"fields": ["title"], "name": "test_title_btree", "fillfactor": 80}
     )
Example #2
0
 def test_deconstruction(self):
     index = BTreeIndex(fields=['title'],
                        name='test_title_btree',
                        fillfactor=80)
     path, args, kwargs = index.deconstruct()
     self.assertEqual(path, 'django.contrib.postgres.indexes.BTreeIndex')
     self.assertEqual(args, ())
     self.assertEqual(kwargs, {
         'fields': ['title'],
         'name': 'test_title_btree',
         'fillfactor': 80
     })
Example #3
0
 def test_deconstruction(self):
     index = BTreeIndex(fields=['title'], name='test_title_btree', fillfactor=80)
     path, args, kwargs = index.deconstruct()
     self.assertEqual(path, 'django.contrib.postgres.indexes.BTreeIndex')
     self.assertEqual(args, ())
     self.assertEqual(kwargs, {'fields': ['title'], 'name': 'test_title_btree', 'fillfactor': 80})