def test_validate_domains(): # arrange verdict = Verdict().set_malware_family("Eicar") # act verdict.add_domain('polyswarm.io') # assert assert Verdict.validate(json.loads(verdict.json()))
def test_add_domain(): # arrange verdict = Verdict() # act verdict.add_domain('polyswarm.io') # assert assert verdict.domains == ['polyswarm.io']
def test_add_two_domains(): # arrange verdict = Verdict() # act verdict.add_domain('polyswarm.io') verdict.add_domain('polyswarm.network') # assert assert verdict.domains == ['polyswarm.io', 'polyswarm.network']