Exemplo n.º 1
0
Arquivo: test_Todo.py Projeto: r3/Todo
 def test_add_new_reminder(self):
     reminder = todo.Reminder("This should not clash")
     todo.add_reminder(reminder)
     assert todo.reminder_exists(reminder)
Exemplo n.º 2
0
Arquivo: test_Todo.py Projeto: r3/Todo
 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
Exemplo n.º 3
0
Arquivo: test_Todo.py Projeto: r3/Todo
 def test_add_existing_reminder(self):
     with pytest.raises(todo.ReminderExistsException):
         todo.add_reminder(TestTodo.sample[0])
Exemplo n.º 4
0
Arquivo: test_Todo.py Projeto: r3/Todo
 def test_delete_real_reminder(self, reminder):
     todo.add_reminder(reminder)
     todo.delete_reminder(reminder)
     assert todo.reminder_exists(reminder) is False