def test_slugs_method(self):
    apple = self.food_model.objects.create(name='apple')
    apple.tags.add('green and juicy')
    apple.tags.add('red')
    self.assertEqual(list(apple.tags.slugs()), ['green-and-juicy', 'red'])
def test_slugs_method(self):
    apple = self.food_model.objects.create(name='apple')
    apple.tags.add('green and juicy')
    apple.tags.add('red')
    self.assertEqual(list(apple.tags.slugs()), ['green-and-juicy', 'red'])