Пример #1
0
 def test_username_begins_with_a_number(self):
     self.assertFalse(check_username_sanity("9Frank"))
Пример #2
0
 def test_username_too_long(self):
     self.assertFalse(check_username_sanity("FrankBauerMaierMueller"))
Пример #3
0
 def test_space_in_username(self):
     self.assertFalse(check_username_sanity("Frank Bauer"))
Пример #4
0
 def test_dot_in_username(self):
     self.assertFalse(check_username_sanity("Frank.Bauer"))
Пример #5
0
 def test_sane_names(self):
     self.assertTrue(check_username_sanity("Achim"))
     self.assertTrue(check_username_sanity("Gerda"))
     self.assertTrue(check_username_sanity("Quetzalquatl23456789"))
     self.assertTrue(check_username_sanity("alrique"))