Example #1
0
 def test_kill_multi_remote_multi_word_reason(self):
     s = StateDouble()
     c = KillHandler(s)
     c.handle((1, 1), ["ABAAC", "test.example.com!origin.example.com (Reason that is long)"])
     self.assertEquals(((1,2), ["test.example.com", "origin.example.com"], "Reason that is long"), s.insight)
Example #2
0
 def test_kill_only_one_remote(self):
     s = StateDouble()
     c = KillHandler(s)
     c.handle((1, 1), ["ABAAC", "test.example.com (Reason)"])
     self.assertEquals(((1,2), ["test.example.com"], "Reason"), s.insight)