def test_add_new_reminder(self): reminder = todo.Reminder("This should not clash") todo.add_reminder(reminder) assert todo.reminder_exists(reminder)
def test_remove_noconfirm(self, reminder): todo.add_reminder(reminder) Namespace = namedtuple("Namespace", ("serial", "confirm")) args = Namespace(reminder.serial, True) todo.remove(args) assert todo.reminder_exists(reminder) is False
def test_add_existing_reminder(self): with pytest.raises(todo.ReminderExistsException): todo.add_reminder(TestTodo.sample[0])
def test_delete_real_reminder(self, reminder): todo.add_reminder(reminder) todo.delete_reminder(reminder) assert todo.reminder_exists(reminder) is False