def test_justright(self): r = auth.legal_password("123456") self.assertTrue(r)
def test_short(self): r = auth.legal_password("123") self.assertEqual(r,False)
def test_short(self): r = auth.legal_password("123") self.assertFalse(r)
def test_long(self): r = auth.legal_password("1234567890") self.assertFalse(r)
def test_goodlength(self): r = auth.legal_password("123123") self.assertTrue(r)
def test_ucase_bad(self): r = auth.legal_password("Hello") self.assertEqual(r, False)
def test_ucase_good(self): r = auth.legal_password("Hello") self.assertEqual(r, True)
def test_goodlength(self): r = auth.legal_password("123456") self.assertEqual(r, True)
def test_long(self): r = auth.legal_password("123456789011") self.assertEqual(r, False)