예제 #1
0
 def test_justright(self):
     r = auth.legal_password("123456")
     self.assertTrue(r)
예제 #2
0
 def test_short(self):
     r = auth.legal_password("123")
     self.assertEqual(r,False)
예제 #3
0
 def test_short(self):
     r = auth.legal_password("123")
     self.assertFalse(r)
예제 #4
0
 def test_long(self):
     r = auth.legal_password("1234567890")
     self.assertFalse(r)
예제 #5
0
 def test_goodlength(self):
     r = auth.legal_password("123123")
     self.assertTrue(r)
예제 #6
0
 def test_ucase_bad(self):
     r = auth.legal_password("Hello")
     self.assertEqual(r, False)
예제 #7
0
 def test_ucase_good(self):
     r = auth.legal_password("Hello")
     self.assertEqual(r, True)
예제 #8
0
 def test_goodlength(self):
     r = auth.legal_password("123456")
     self.assertEqual(r, True)
예제 #9
0
 def test_long(self):
     r = auth.legal_password("123456789011")
     self.assertEqual(r, False)