def test_delete_obj(self):
    apple = self.food_model.objects.create(name='apple')
    apple.tags.add('red')
    self.assert_tags_equal(apple.tags.all(), ['red'])
    strawberry = self.food_model.objects.create(name='strawberry')
    strawberry.tags.add('red')
    apple.delete()
    self.assert_tags_equal(strawberry.tags.all(), ['red'])
def test_delete_obj(self):
    apple = self.food_model.objects.create(name='apple')
    apple.tags.add('red')
    self.assert_tags_equal(apple.tags.all(), ['red'])
    strawberry = self.food_model.objects.create(name='strawberry')
    strawberry.tags.add('red')
    apple.delete()
    self.assert_tags_equal(strawberry.tags.all(), ['red'])