Exemple #1
0
 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)
Exemple #2
0
 def test_whois_single(self):
     s = StateDouble()
     c = WhoIsHandler(s)
     c.handle((1,1), ["AB", "Test"])
     self.assertEquals([((1, None), "Test")], s.insight)