def test_validate_two_ip_at_once(): # arrange verdict = Verdict().set_malware_family("Eicar") # act verdict.add_ip_addresses(['192.168.0.1', '8.8.8.8']) # assert assert Verdict.validate(json.loads(verdict.json()))
def test_add_two_ip_at_once(): # arrange verdict = Verdict() # act verdict.add_ip_addresses(['192.168.0.1', '8.8.8.8']) # assert assert verdict.ip_addresses == ['192.168.0.1', '8.8.8.8']