Esempio n. 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"]
Esempio n. 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"]
Esempio n. 3
0
def test_iter_query_string():
    assert iter_query("lolwut") == ["lolwut"]
Esempio n. 4
0
def test_iter_query_string():
    assert iter_query("lolwut") == ["lolwut"]