def testRawAuthentication(self): for user, passwd in [('adim', 'adim'), ('foo', 'bar')]: digest = self._callRemote('authenticate', user, passwd) expected = rpc.make_uid(user, passwd) got, _ = unittest.deferredResult(digest) self.assertEquals(got, expected, ('%s != %s (%s)' % (got, expected, _))) self.assertEquals(_, '')
def testRawAuthentication(self): for user, passwd in [('adim', 'adim'), ('foo', 'bar')]: digest = self._callRemote('authenticate', user, passwd) expected = rpc.make_uid(user, passwd) self.assertEquals(unittest.deferredResult(digest), expected)