def run_test_status_file(self): trim_status_dict = convert_unicode_dictionary_to_str( json.loads( open( os.path.join( self.BASE_OUTPUT, os.path.join(self.run.run_date, "trim_status.txt")), 'r').read())) expected_trim_status = self.expected['trim_status'] self.assertDictEqual(trim_status_dict, expected_trim_status)
def get_expected_results(self, expected_results_file): return convert_unicode_dictionary_to_str(json.loads(open(expected_results_file,'r').read()))
def run_test_status_file(self): trim_status_dict = convert_unicode_dictionary_to_str(json.loads(open(os.path.join(self.BASE_OUTPUT, os.path.join(self.run.run_date,"trim_status.txt")), 'r').read())) expected_trim_status = self.expected['trim_status'] self.assertDictEqual(trim_status_dict, expected_trim_status)
def get_expected_results(self, expected_results_file): return convert_unicode_dictionary_to_str( json.loads(open(expected_results_file, 'r').read()))