def setup(self): self.web_client = Dingus() self.web_client.request.return_value = ['application/json', {'foo': [1, 2]}] root = Resource.bookmark('/foo', self.web_client) root['foo'].append(3) root.put()
def setup(self): web_client = Dingus() web_client.request.return_value = [ u'application/json', { u'foo': [1, 2, u'/bar'] } ] self.root = Resource.bookmark('/', web_client)
def setup(self): self.web_client = Dingus() self.web_client.request.return_value = [ u'application/json', { u'foo': u'/foo' } ] self.root = Resource.bookmark('/', self.web_client)
def setup(self): self.web_client = Dingus() self.web_client.request.return_value = [ 'application/json', { 'foo': [1, 2] } ] root = Resource.bookmark('/foo', self.web_client) root['foo'].append(3) root.put()
def setup(self): web_client = Dingus() web_client.request.return_value = [u'application/json', {u'foo': [1, 2, u'/bar']}] self.root = Resource.bookmark('/', web_client)
def setup(self): self.web_client = Dingus() self.web_client.request.return_value = [u'application/json', {u'foo': u'/foo'}] self.root = Resource.bookmark('/', self.web_client)
def setup(self): self.web_client = Dingus() self.web_client.request.return_value = ['application/fake', 'value'] self.resource = Resource.bookmark('/', self.web_client)