

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

dataset/ETHPy150Open ivanlei/threatbutt/tests/threatbutt_test.py test_ioc/VarMisuse@31/45 `tb`->`fake_out`