Пример #1
0
def test_iter_query_file(tmpdir):
    filename = str(tmpdir.join('test.txt'))
    with open(filename, 'w') as f:
        f.write("lolwut")
    assert iter_query(filename) == ["lolwut"]
Пример #2
0
def test_iter_query_file(tmpdir):
    filename = str(tmpdir.join('test.txt'))
    with open(filename, 'w') as f:
        f.write("lolwut")
    assert iter_query(filename) == ["lolwut"]
Пример #3
0
def test_iter_query_string():
    assert iter_query("lolwut") == ["lolwut"]
Пример #4
0
def test_iter_query_string():
    assert iter_query("lolwut") == ["lolwut"]