def test_whois_multi(self): s = StateDouble() c = WhoIsHandler(s) c.handle((1,1), ["AB", "Test,Second*"]) self.assertEquals([((1, None), "Test"), ((1, None), "Second*")], s.insight)
def test_whois_single(self): s = StateDouble() c = WhoIsHandler(s) c.handle((1,1), ["AB", "Test"]) self.assertEquals([((1, None), "Test")], s.insight)