def METHOD_NAME(self):
    url, rank = resolve_bang_definition('http://example.com/' + chr(2) + chr(1) + '0', 'text')
    self.assertEqual(url, 'http://example.com/text')
    self.assertEqual(rank, 0)