示例#1
0
 def test_cmd_invalidates(self):
     """
         Check that the command invalidates everything previously
         registered and that nothing is returned for previously
         valid command.
     """
     response = register("clearTestService", 1101)
     if response != "OK":
         raise ValueError(response)
     svcs = list(broker("clearTestService"))
     if len(svcs) != 1:
         raise ValueError(len(svcs))
     self.assertEqual(clearall(), "OK")
     svcs = list(broker("clearTestService"))
     self.assertEqual(len(svcs), 0)
示例#2
0
 def test_cmd_invalidates(self):
     """
         Check that the command invalidates everything previously
         registered and that nothing is returned for previously
         valid command.
     """
     response = register("clearTestService", 1101)
     if response != "OK":
         raise ValueError(response)
     svcs = list(broker("clearTestService"))
     if len(svcs) != 1:
         raise ValueError(len(svcs))
     self.assertEqual(clearall(), "OK")
     svcs = list(broker("clearTestService"))
     self.assertEqual(len(svcs), 0)
示例#3
0
 def tearDown(self):
     clearall()
示例#4
0
 def setUp(self):
     clearall()
示例#5
0
 def setUp(self):
     clearall()
     register("ReservedTestService", 11819)
     register("AnotherReservedTestService", 11820)
     register("MultiReservedTestService", 11821)
     register("MultiReservedTestService", 11822)
示例#6
0
 def test_cmd(self):
     """
         Check that the command returns OK, which it always should.
     """
     self.assertEqual(clearall(), "OK")
示例#7
0
 def test_cmd(self):
     """
         Check that the command returns OK, which it always should.
     """
     self.assertEqual(clearall(), "OK")