Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
snakefood / test / test_unused.py
Size: Mime:
"""
Test ignoring unused imports.
"""

from __future__ import print_function

from os.path import *
from testsupport import *


_files = ['simple/unused.py']

def test_ignore_unused():
    "Test ignoring unused imports."

    for fn in _files:
        fn = join(data, fn)
        print('Testing ignore unused for: %s' % fn)
        compare_expect(fn.replace('.py', '.expect'), None,
                       'sfood', '--ignore-unused', fn, filterdir=(data, 'ROOT'))