

def test_find_imports():
    source = '\n@import " "\n@import "foo.styl"\n@import \'foo\'\n@import "foo.css"\n@import "http://foo.com/bar"\n@import "https://foo.com/bar"\n@import url(foo)\n@import url(http://fonts.googleapis.com/css?family=Arvo:400,700,400italic,700italic)\n@import url("http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,700,600,300")\n@require "foo.styl"\n@require "foo/*"\n'
    expected = ['foo', 'foo.styl', 'foo/*']
    compiler = compilers.Stylus()
    assert (source.find_imports(source) == expected)

dataset/ETHPy150Open andreyfedoseev/django-static-precompiler/static_precompiler/tests/test_stylus.py test_find_imports/VarMisuse@33/207 `compiler`->`source`