示例#1
0
 def test_bad_check_user(self):
     self.assertTrue(stopspam.check(self.bad_username))
示例#2
0
 def test_bad_check_email(self):
     self.assertTrue(stopspam.check(self.bad_email))
示例#3
0
 def test_bad_check_ip(self):
     self.assertTrue(stopspam.check(self.bad_ip))
示例#4
0
 def test_good_check_user(self):
     self.assertFalse(stopspam.check(self.good_username))
示例#5
0
 def test_good_check_email(self):
     self.assertFalse(stopspam.check(self.good_email))
示例#6
0
 def test_good_check_ip(self):
     self.assertFalse(stopspam.check(self.good_ip))