def test_addon_index(self):
     c = Collection.objects.get(pk=512)
     c.author = self.user
     eq_(c.addon_index, None)
     ids = c.addons.values_list('id', flat=True)
     c.save()
     eq_(c.addon_index, Collection.make_index(ids))
 def test_addon_index(self):
     c = Collection.objects.get(pk=512)
     c.author = self.user
     assert c.addon_index is None
     ids = c.addons.values_list('id', flat=True)
     c.save()
     assert c.addon_index == Collection.make_index(ids)
Example #3
0
 def test_addon_index(self):
     c = Collection.objects.get(pk=512)
     c.author = self.user
     eq_(c.addon_index, None)
     ids = c.addons.values_list('id', flat=True)
     c.save()
     eq_(c.addon_index, Collection.make_index(ids))
Example #4
0
 def test_addon_index(self):
     c = Collection.objects.get(pk=512)
     c.author = self.user
     assert c.addon_index is None
     ids = c.addons.values_list('id', flat=True)
     c.save()
     assert c.addon_index == Collection.make_index(ids)