def _run_test_for_invalid_separator(filepath, delimiter_name):
    if (delimiter_name not in ('tab', 'comma')):
        with assert_raises(ValueError):
            _check_events_file_uses_tab_separators(events_files=filepath)
    else:
        result = _check_events_file_uses_tab_separators(events_files=filepath)
        assert_true((result is None))
def _run_test_for_invalid_separator(filepath, delimiter_name):
    if (delimiter_name not in ('tab', 'comma')):
        with assert_raises(ValueError):
            _check_events_file_uses_tab_separators(events_files=filepath)
    else:
        result = _check_events_file_uses_tab_separators(events_files=filepath)
        assert_true((result is None))