def setUp(self):
        super(ApiCallRouterWithApprovalChecksTest, self).setUp()

        self.client_id = test_lib.TEST_CLIENT_ID

        self.delegate_mock = mock.MagicMock()
        self.legacy_manager_mock = mock.MagicMock()

        self.router = api_router.ApiCallRouterWithApprovalChecks(
            delegate=self.delegate_mock,
            legacy_manager=self.legacy_manager_mock)
Esempio n. 2
0
    def setUp(self):
        super(ApiCallRouterWithApprovalChecksTest, self).setUp()

        self.client_id = rdf_client.ClientURN("C.0000111122223333")

        self.delegate_mock = mock.MagicMock()
        self.legacy_manager_mock = mock.MagicMock()

        self.router = api_router.ApiCallRouterWithApprovalChecks(
            delegate=self.delegate_mock,
            legacy_manager=self.legacy_manager_mock)