コード例 #1
0
ファイル: tests.py プロジェクト: AllenThePythonic/Stopspam
 def test_bad_check_user(self):
     self.assertTrue(stopspam.check(self.bad_username))
コード例 #2
0
ファイル: tests.py プロジェクト: AllenThePythonic/Stopspam
 def test_bad_check_email(self):
     self.assertTrue(stopspam.check(self.bad_email))
コード例 #3
0
ファイル: tests.py プロジェクト: AllenThePythonic/Stopspam
 def test_bad_check_ip(self):
     self.assertTrue(stopspam.check(self.bad_ip))
コード例 #4
0
ファイル: tests.py プロジェクト: AllenThePythonic/Stopspam
 def test_good_check_user(self):
     self.assertFalse(stopspam.check(self.good_username))
コード例 #5
0
ファイル: tests.py プロジェクト: AllenThePythonic/Stopspam
 def test_good_check_email(self):
     self.assertFalse(stopspam.check(self.good_email))
コード例 #6
0
ファイル: tests.py プロジェクト: AllenThePythonic/Stopspam
 def test_good_check_ip(self):
     self.assertFalse(stopspam.check(self.good_ip))