def test_show_all_admin(self, config, bot, update): expected = "первого" pinger = Pinger(config) pinger.show_all(bot, update) assert expected in bot.get_message()
def test_show_all_not_admin(self, config, bot, update): update.set_message("", username="******") expected = "only allowed" pinger = Pinger(config) pinger.show_all(bot, update) assert expected in bot.get_message()