def test_authenticated_fail_kwargs(self):
    try:
      self.proxy20.jsonrpc.testAuth(
        username='osammeh', password='password', string='this is a string')
    except __HOLE__ as e:
      self.assertEquals(e.args[1], 401)
    else:
      self.assert_(False, 'Didnt return status code 401 on unauthorized access')
dataset/ETHPy150Open samuraisam/django-json-rpc/test/test.py/JSONRPCTest.test_authenticated_fail_kwargs