Beispiel #1
0
def test_extract_file_null(sample_file):
    filters = ("foo=bar",)
    expected_result = {"foo": [], "_foo": []}

    result = extract(sample_file, filters)
    assert result == expected_result
Beispiel #2
0
def test_extract_url(sample_url, filters, expected_result):
    result = extract(sample_url, filters)
    assert result == expected_result
Beispiel #3
0
def test_extract_file(sample_file, filters, expected_result):
    result = extract(sample_file, filters)
    assert result == expected_result