def test_job_included(self): """Ensure that the job definition has been included.""" result = testcase_info._prepare_testcase_dict(self.testcase) job_definition = result['job_definition'] # Order is not necessarily preserved. self.assertIn('X = 1\n', job_definition) self.assertIn('Y = 2\n', job_definition)
def test_expected_properties_included(self): """Ensure that a few of the common test case properties are included.""" result = testcase_info._prepare_testcase_dict(self.testcase) self.assertEquals(result['status'], 'Pending') self.assertEquals(result['open'], True) self.assertEquals(result['group_id'], 0)