Ejemplo n.º 1
0
 def testRBLCheckWithoutConfigSection(self):
     headers = {}
     headers['client_address'] = 'foo'
     rbl = RBL(headers, Settings())
     self.assertEqual(None, rbl.get_score())
Ejemplo n.º 2
0
 def testRBLActionCheckScoreWithValidResult(self):
     rbl = RBL()
     rbl.results['dul.dnsbl.sorbs.net'] = '127.0.0.2'
     self.assertEqual(1, rbl.get_score())
Ejemplo n.º 3
0
 def testRBLScoreBeforeDoingTest(self):
     rbl = RBL(settings=Settings())
     self.assertEqual(None, rbl.get_score())