def get_import_file_content_or_raise(user_id, import_type):
    filename = generate_import_filename(user_id, import_type)
    if (not os.path.isfile(filename)):
        raise SuspiciousOperation('No test run performed previously.')
    with open(filename, 'rb') as file:
        return file.read()
def get_import_file_content_or_raise(user_id, import_type):
    filename = generate_import_filename(user_id, import_type)
    if (not os.path.isfile(filename)):
        raise SuspiciousOperation('No test run performed previously.')
    with open(filename, 'rb') as file:
        return file.read()