def test_get_version(self): common.services.register(ServiceName.REQUEST_ID, MagicMock()) handler = AgentControlHandler() response = handler.get_version(VersionRequest()) assert_that(response.result, equal_to(VersionResultCode.OK)) assert_that(response.version, not_none()) assert_that(response.revision, not_none())
def test_version(self): req = VersionRequest() response = self.control_client.get_version(req) assert_that(response.result, equal_to(VersionResultCode.OK)) assert_that(response.version, not_none()) assert_that(response.revision, not_none())
def test_get_version(self): handler = AgentControlHandler() response = handler.get_version(VersionRequest()) assert_that(response.result, equal_to(VersionResultCode.OK)) assert_that(response.version, not_none()) assert_that(response.revision, not_none())