def test_is_completed(self): task = TaskStatus("task") self.assertFalse(task.is_completed()) task.start() self.assertFalse(task.is_completed()) task.complete() self.assertTrue(task.is_completed())
def test_update_to(self): task = TaskStatus("task") task.update_to("completed") self.assertEqual(task.completed, task.status) self.assertTrue(task.is_completed())
def test_update_to(self): task = TaskStatus('task') task.update_to('completed') self.assertEqual(task.completed, task.status) self.assertTrue(task.is_completed())