def test_motd_reply_if_relevant(self): s = StateDouble() c = MotdResponder(s) c.callback_motd((7,6), (2, None)) self.assertEquals([], s.insight)
def test_motd__reply(self): s = StateDouble() c = MotdResponder(s) c.callback_motd((3,6), (1, None)) self.assertEquals([((1,None), "375", (3,6), ["test.example.com Message of the Day"]), ((1,None), "376", (3,6), ["End of /MOTD."])], s.insight)