def setUp(self):
self.username = '<STR_LIT>'<EOL>self.password = '<STR_LIT>'<EOL>self.checker = InMemoryUsernamePasswordDatabaseDontUse()<EOL>self.checker.addUser(self.username, self.password)<EOL>self.avatar = StubAvatar()<EOL>self.realm = StubRealm(self.avatar)<EOL>self.portal = Portal(self.realm, [self.checker])<EOL>self.server = CredReceiver()<EOL>self.server.portal = self.portal<EOL>self.client = AMP()<EOL>self.finished = loopbackAsync(self.server, self.client)<EOL>
Create a L{CredReceiver} hooked up to a fake L{IBoxSender} which
records boxes sent through it.