Esempio n. 1
0
 def test_admin_reply(self):
     s = StateDouble()
     c = AdminResponder(s)
     c.callback_admininfo((3,6), (1, None))
     self.assertEquals(
         [
             (
                 (1,None),
                 "256",
                 (3,6),
                 ["Administrative info about test.example.com"]
             ), (
                 (1,None),
                 "257",
                 (3,6),
                 ["A testing server in Test, USA"]
             ), (
                 (1,None),
                 "258",
                 (3,6),
                 ["Administrator is tester"]
             ), (
                 (1,None),
                 "259",
                 (3,6),
                 ["*****@*****.**"]
             )
         ],
         s.insight
     )
Esempio n. 2
0
 def test_admin_reply_if_relevant(self):
     s = StateDouble()
     c = AdminResponder(s)
     c.callback_admininfo((7,6), (2, None))
     self.assertEquals([], s.insight)