def get_public_ip(message): log.info("Handling command get public ip - %s" % message.text) bot.reply_to(message, utils.get_public_ip())
def test_get_public_ip(self): self.assertRegex(utils.get_public_ip(), self.ip_regex)