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