Exemplo n.º 1
0
    def test_callServer_withArgs(self):
        """ test _callServer() - calling method with args """

        client = TestLinkHelper().connect(TestlinkAPIClient)
        response = client._callServer('repeat', {'str': 'some arg'})
        self.assertEqual('You said: some arg', response)
 def test_callServer_withArgs(self):
     """ test _callServer() - calling method with args """
     
     client = TestLinkHelper().connect(TestlinkAPIClient)
     response = client._callServer('repeat', {'str' : 'some arg'})
     self.assertEqual('You said: some arg', response)
Exemplo n.º 3
0
    def test_callServer_noArgs(self):
        """ test _callServer() - calling method with no args """

        client = TestLinkHelper().connect(TestlinkAPIClient)
        response = client._callServer('sayHello')
        self.assertEqual('Hello!', response)
 def test_callServer_noArgs(self):
     """ test _callServer() - calling method with no args """
     
     client = TestLinkHelper().connect(TestlinkAPIClient)
     response = client._callServer('sayHello')
     self.assertEqual('Hello!', response)