Example #1
0
    def setUp(self):
        authentication.getpass = GetPass()  # override 'getpass' module
        self.ca = authentication.ClientAuthenticator()
        self.ba = authentication.BusCookieAuthenticator()
        self.reply = None

        self.ca.beginAuthentication(self)
Example #2
0
    def setUp(self):
        self.ba = authentication.BusCookieAuthenticator()
        self.t = tempfile.mkdtemp()

        self.ba.cookie_file = os.path.join(self.t, 'nomnomnom')
Example #3
0
 def setUp(self):
     self.ba = authentication.BusCookieAuthenticator()