def test_authenticated_fail(self):
    try:
      self.proxy10.jsonrpc.testAuth(
        'osammeh', 'password', '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