Beispiel #1
0
 def test_put(self):
     session = Session('test', api_key='xyz')
     self.server.add(url='/ISSUE',
                     params='method=PUT&apiKey=xyz',
                     response='{"data": "foo"}')
     actual = session.put('/ISSUE')
     compare(actual, expected='foo')
     self.server.assert_called(times=1)
 def test_put(self):
     session = Session('test', api_key='xyz')
     self.server.add(
         url='/ISSUE',
         params='method=PUT&apiKey=xyz',
         response='{"data": "foo"}'
     )
     actual = session.put('/ISSUE')
     compare(actual, expected='foo')
     self.server.assert_called(times=1)