class testWBChecker(unittest.TestCase): def setUp(self): self.checker = WBChecker() self.credential = credentials.UsernamePassword("Mati", "mati") self.credential2 = credentials.UsernamePassword("Mati", "bordgl") self.credential3 = credentials.UsernamePassword("Waldo", "waldo") # reactor.run() def tearDown(self): self.checker.stop() def testGetValidUser(self): d = self.checker.requestAvatarId(self.credential) e = self.checker.requestAvatarId(self.credential2) f = self.checker.requestAvatarId(self.credential3) deferredResult(d) deferredError(e) deferredResult(f)
def setUp(self): self.checker = WBChecker() self.credential = credentials.UsernamePassword("Mati", "mati") self.credential2 = credentials.UsernamePassword("Mati", "bordgl") self.credential3 = credentials.UsernamePassword("Waldo", "waldo")