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(_, '')
Exemple #2
0
 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(_, '')
Exemple #3
0
 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)
 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)