

def test_ioc_maltego():
    with patch('sys.stdout', new=StringIO()) as fake_out:
        tb = ThreatButt(maltegofy=True)
        tb.clown_strike_ioc('127.0.0.1')
        assert len(fake_out.getvalue())

dataset/ETHPy150Open ivanlei/threatbutt/tests/threatbutt_test.py test_ioc_maltego/original