Exemplo n.º 1
0
 def test_plain_check(self):
     from repoze.who.plugins.htpasswd import plain_check
     self.failUnless(plain_check('password', 'password'))
     self.failIf(plain_check('notpassword', 'password'))
Exemplo n.º 2
0
    def test_plain_check(self):
        from repoze.who.plugins.htpasswd import plain_check

        self.failUnless(plain_check("password", "password"))
        self.failIf(plain_check("notpassword", "password"))
Exemplo n.º 3
0
 def test_plain_check(self):
     from repoze.who.plugins.htpasswd import plain_check
     self.assertTrue(plain_check('password', 'password'))
     self.assertFalse(plain_check('notpassword', 'password'))
Exemplo n.º 4
0
    def test_plain_check(self):
        from repoze.who.plugins.htpasswd import plain_check

        self.assertTrue(plain_check("password", "password"))
        self.assertFalse(plain_check("notpassword", "password"))