def test_validate_two_domains_at_once(): # arrange verdict = Verdict().set_malware_family("Eicar") # act verdict.add_domains(['polyswarm.io', 'polyswarm.network']) # assert assert Verdict.validate(json.loads(verdict.json()))
def test_add_two_domains_at_once(): # arrange verdict = Verdict() # act verdict.add_domains(['polyswarm.io', 'polyswarm.network']) # assert assert verdict.domains == ['polyswarm.io', 'polyswarm.network']