def testClientNameCheckWithClientAndReverseDifferent(self): headers = {} headers['client_name'] = 'unknown' headers['reverse_client_name'] = 'another.domain.tld' cn = ClientName(headers) cn.do_test() self.assertEqual(2, cn.get_score())
def testClientNameCheckWithClientAndReverseSameUnknown(self): headers = {} headers['client_name'] = 'unknown' headers['reverse_client_name'] = 'unknown' cn = ClientName(headers) cn.do_test() self.assertEqual(2, cn.get_score())
def testClientNameCheckWithClientAndReverseSameNotUnkonwn(self): headers = {} headers['client_name'] = 'another.domain.tld' headers['reverse_client_name'] = 'another.domain.tld' cn = ClientName(headers) cn.do_test() self.assertEqual(0, cn.get_score())
def testClientNameScoreBeforeDoingTest(self): cn = ClientName() self.assertEqual(0, cn.get_score())