def test_delete(self): input = Input(input_port=self.test_inputport, resource=self.test_resource, run_job=self.test_runjob) input.save() input.delete() retr_input = Input.objects.filter(resource=self.test_resource, input_port=self.test_inputport) self.assertFalse(retr_input.exists())
def test_save(self): input = Input(input_port=self.test_inputport, resource=self.test_resource, run_job=self.test_runjob) input.save() retr_input = Input.objects.get(uuid=input.uuid) self.assertEqual(retr_input.resource, self.test_resource)