def METHOD_NAME(_):
    '''
    Test that CleanOptions no_tar_file option
    is set when output_dir is specified
    '''
    c = InsightsConfig(obfuscate=True, output_dir='test')
    r = {'keywords': ['test']}
    o = CleanOptions(c, '/var/tmp/test', r, 'test')
    assert o.no_tar_file is not None