예제 #1
0
    def test_wait(self):
        server = self.server(reset_main_mock=True)
        server.start()
        server.wait()

        # check calls
        main_mock_calls = [mock.call.proxy.start(), mock.call.proxy.wait()]
        self.assertEqual(self.main_mock.mock_calls, main_mock_calls)
예제 #2
0
    def test_wait(self):
        server = self.server(reset_master_mock=True)
        server.start()
        server.wait()

        # check calls
        master_mock_calls = [mock.call.proxy.start(), mock.call.proxy.wait()]
        self.master_mock.assert_has_calls(master_mock_calls)
예제 #3
0
    def test_wait(self):
        server = self.server(reset_master_mock=True)
        server.start()
        server.wait()

        # check calls
        master_mock_calls = [mock.call.proxy.start(), mock.call.proxy.wait()]
        self.master_mock.assert_has_calls(master_mock_calls)