Beispiel #1
0
    def test_retrieve(self):
        self.mock_response({"single": "ton"})
        res = MySingleton.retrieve()

        self.requestor_mock.request.assert_called_with("get", "/v1/mysingleton", {}, None)

        self.assertEqual("ton", res.single)
    def test_retrieve(self):
        self.mock_response({'single': 'ton'})
        res = MySingleton.retrieve()

        self.requestor_mock.request.assert_called_with('get',
                                                       '/v1/mysingleton', {})

        self.assertEqual('ton', res.single)
    def test_retrieve(self):
        self.mock_response({
            'single': 'ton'
        })
        res = MySingleton.retrieve()

        self.requestor_mock.request.assert_called_with(
            'get', '/v1/mysingleton', {})

        self.assertEqual('ton', res.single)