Ejemplo n.º 1
0
    def setUp(self):
        unittest.TestCase.setUp(self)
        rpc.clear()

        @rpc.export
        class QueueService(object):
            @rpc.enable
            @classmethod
            def count(cls):
                print "QueueService.count() [classmethod]"

            @rpc.enable
            def push(self, item):
                print "QueueService.push()"

            @rpc.disable
            def pop(self):
                print "QueueService.pop()"

        self.QueueService = QueueService  # so that test cases can access this class definition
Ejemplo n.º 2
0
    def setUp(self):
        unittest.TestCase.setUp(self)
        rpc.clear()

        @rpc.export
        class QueueService(object):
            @rpc.enable
            @classmethod
            def count(cls):
                print "QueueService.count() [classmethod]"

            @rpc.enable
            def push(self, item):
                print "QueueService.push()"

            @rpc.disable
            def pop(self):
                print "QueueService.pop()"

        self.QueueService = QueueService  # so that test cases can access this class definition
Ejemplo n.º 3
0
 def setUp(self):
     unittest.TestCase.setUp(self)
     rpc.clear()
Ejemplo n.º 4
0
 def setUp(self):
     unittest.TestCase.setUp(self)
     rpc.clear()