def test_remove_fail(self, reminder): Namespace = namedtuple("Namespace", ("serial", "confirm")) args = Namespace(reminder.serial, True) with pytest.raises(todo.ReminderDoesNotExistException): todo.remove(args)
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