def test_delete(self): table1 = Table(table_name="First Table") table1.save() table1.delete() self.assertEqual(Table.objects.count(), 0)