Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
 def tearDown(self):
     clearall()
Ejemplo n.º 4
0
 def setUp(self):
     clearall()
Ejemplo n.º 5
0
 def setUp(self):
     clearall()
     register("ReservedTestService", 11819)
     register("AnotherReservedTestService", 11820)
     register("MultiReservedTestService", 11821)
     register("MultiReservedTestService", 11822)
Ejemplo n.º 6
0
 def test_cmd(self):
     """
         Check that the command returns OK, which it always should.
     """
     self.assertEqual(clearall(), "OK")
Ejemplo n.º 7
0
 def test_cmd(self):
     """
         Check that the command returns OK, which it always should.
     """
     self.assertEqual(clearall(), "OK")