(file_or_filename)
Does basic validation on the uploaded file. Raises a FixtureUploadError if
    something goes wrong.
Does basic validation on the uploaded file. Raises a FixtureUploadError if
    something goes wrong.
Does basic validation on the uploaded file . Raises a FixtureUploadError if something goes wrong .
def validate_fixture_file_format(file_or_filename):
    """
    Does basic validation on the uploaded file. Raises a FixtureUploadError if
    something goes wrong.
    """
    workbook = get_workbook(file_or_filename)
    workbook.get_types_sheet()
    error_messages = _validate_fixture_upload(workbook)
    if error_messages:
        raise FixtureUploadError(error_messages)
def validate_fixture_file_format ( file_or_filename ) : workbook = get_workbook ( file_or_filename ) workbook . get_types_sheet ( ) error_messages = _validate_fixture_upload ( workbook ) if error_messages : raise FixtureUploadError ( error_messages )