def test_stores_and_loads_all_params(self):
    obj = MockTask(state=task.JobState.RUNNING, node_id='test-hpc', job_id=15, num_cpus=3, num_gpus=150, memory_requirements='4KB', expected_duration='100:00:00')
    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_all_params(self):
    obj = MockTask(state=task.JobState.RUNNING, node_id='test-hpc', job_id=15, num_cpus=3, num_gpus=150, memory_requirements='4KB', expected_duration='100:00:00')
    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()