예제 #1
0
def test_feed_ipv4_confidence():
    x = Ipv4()
    cli = Client('http://localhost:5000', 1234)

    r = cli.aggregate(data, field='observable')
    r = x.process(r, whitelist)

    s = set()
    for rr in r:
        if rr['observable'] not in s:
            s.add(rr['confidence'])

    assert 75 not in s