def test_no_wmafiles(): listing = tools.file_listing('virtualmusic/W', ['wma']) assert listing == []
def test_file_listing(): exts = ['.py'] listing = tools.file_listing('.', exts) assert './mock.py' in listing assert './tests.py' in listing assert './tests.pyc' not in listing