예제 #1
0
 def test_bad_confidence_user(self):
     self.assertNotEqual(stopspam.confidence(self.bad_username), 0)
예제 #2
0
 def test_bad_confidence_email(self):
     self.assertNotEqual(stopspam.confidence(self.bad_email), 0)
예제 #3
0
 def test_bad_confidence_ip(self):
     self.assertNotEqual(stopspam.confidence(self.bad_ip), 0)
예제 #4
0
 def test_good_confidence_user(self):
     self.assertEquals(stopspam.confidence(self.good_username), 0)
예제 #5
0
 def test_good_confidence_email(self):
     self.assertEquals(stopspam.confidence(self.good_email), 0)
예제 #6
0
 def test_good_confidence_ip(self):
     self.assertEquals(stopspam.confidence(self.good_ip), 0)