Exemplo n.º 1
0
    def test_show_items_should_display_list_of_todo(self):
        bot = Bot()
        bot.todos.append(Todo('Тест 1', datetime.now()))
        bot.todos.append(Todo('Тест 2', datetime.now()))

        result = bot.show_items()
        self.assertEqual(result, 'Тест 1\nТест 2')
Exemplo n.º 2
0
 def test_show_items_should_display_text_when_list_is_empty(self):
     bot = Bot()
     result = bot.show_items()
     self.assertEqual(result, 'Список пуст')