def test_blacklisted_contacts_has_low_priority(self): blacklist = Blacklist(prioritizer.get_redis_client(), Encoder()) blacklisted_number = "1234" blacklist.poll_contacts(231, blacklisted_number) params = {'sender': blacklisted_number, 'message': 'JOIN'} german_url = self.generate_throttle_url(**params) ureport_url = self.generate_ureport_url(**params) self.assert_low_priority(german_url, ureport_url) blacklist.delete_poll_contacts(231, blacklisted_number)
def setUp(self): self.blacklist = Blacklist(prioritizer.get_redis_client(), Encoder())