def test_file_with_unicode_charactes_is_converted_to_robot_format_without_exceptions( self): parent_path = os.path.dirname(os.path.realpath(__file__)) path = os.path.join(parent_path, 'res_test_robot_session_server', 'to_convert_unicode.tsv') from base64 import b64decode b64decode(convert_robot_data_file(path)['result'])
def test_tsv_file_is_properly_converted_to_robot_format(self): parent_path = os.path.dirname(os.path.realpath(__file__)) path = os.path.join(parent_path, 'res_test_robot_session_server', 'to_convert.tsv') from base64 import b64decode converted = b64decode(convert_robot_data_file(path)['result']) golden_file_path = os.path.join(parent_path, 'res_test_robot_session_server', 'converted.robot') self.assertEqualToGoldenFileContent(converted, golden_file_path)