Passed
Pull Request — rhel7-branch (#72)
by Matěj
57s
created

test_data_fetch.test_unsupported_url()   A

Complexity

Conditions 2

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 2
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
from org_fedora_oscap import data_fetch
2
3
4
def test_supported_url():
5
    assert data_fetch.can_fetch_from("http://example.com")
6
    assert data_fetch.can_fetch_from("https://example.com")
7
8
9
def test_unsupported_url():
10
    assert not data_fetch.can_fetch_from("aaaaa")
11