Exemplo n.º 1
0
    def test_get_property(self, requests):
        requests.get = Mock(return_value=self.get_mock_response({}))
        table = resources.Table(name='users')

        client = SkyClient()
        client.get_property(table, 'age')
        requests.get.assert_called_once_with(
            'http://127.0.0.1:8585/tables/users/properties/age',
            headers={'content-type': 'application/json'},
            data=None
        )