def test_stores_and_loads_simple(self):
    obj = MockTask(state=task.JobState.UNSTARTED)
    obj.save()
    all_entities = list(task.Task.objects.all())
    self.assertGreaterEqual(len(all_entities), 1)
    self.assertEqual(all_entities[0], obj)
    all_entities[0].delete()
def test_stores_and_loads_simple(self):
    obj = MockTask(state=task.JobState.UNSTARTED)
    obj.save()
    all_entities = list(task.Task.objects.all())
    self.assertGreaterEqual(len(all_entities), 1)
    self.assertEqual(all_entities[0], obj)
    all_entities[0].delete()