def test_get_criteria_by_test_failed(self, mock_get_dict_by_test):
     mock_get_dict_by_test.return_value = None
     self.assertIsNone(functest_utils.get_criteria_by_test(self.testname))
 def test_get_criteria_by_test_default(self, mock_get_dict_by_test):
     mock_get_dict_by_test.return_value = self.testcase_dict
     self.assertEqual(functest_utils.get_criteria_by_test(self.testname),
                      self.criteria)