コード例 #1
0
ファイル: test_something_lol.py プロジェクト: cpdean/seeker
def test_import_finder_matches_nested_module(line, module):
    fn = "show"
    match = seeker._imports_function(line, fn)
    importer = match.groups()[0]
    assert importer == module
コード例 #2
0
ファイル: test_something_lol.py プロジェクト: cpdean/seeker
def test_importer_finder_doesnt_match_substr():
    line = "import Wumpus exposing (ajoinb)"
    fn = "join"
    match = seeker._imports_function(line, fn)
    assert match is None
コード例 #3
0
ファイル: test_something_lol.py プロジェクト: cpdean/seeker
def test_importer_finder(line):
    fn = "join"
    match = seeker._imports_function(line, fn)
    print(match.groups())
    importer = match.groups()[0]
    assert importer == "String"