Example #1
0
 def test_create_fail2(self):
     self.bango_patcher.package.post.side_effect = HttpServerError()
     res = self.client.post(self.payment_list,
                            data=json.dumps(payment_data))
     eq_(res.status_code, 500)
Example #2
0
 def test_add_fail2(self, client):
     client.api.bango.package.post.side_effect = HttpServerError()
     r = self.client.post(list_url('account'),
                          data=json.dumps(payment_data))
     eq_(r.status_code, 500)