Пример #1
0
 def test_complete(self):
     t = Task(name='task')
     t.complete()
     self.assertEqual(t.status, 'complete')
     self.assertTrue(t.is_complete())
     self.assertTrue(t.is_done())
     self.assertFalse(t.is_failed())
Пример #2
0
 def test_pending_task(self):
     t = Task(name='task')
     t.pending()
     self.assertEqual(t.status, 'pending')
     self.assertTrue(t.is_pending())
     self.assertFalse(t.is_done())
Пример #3
0
 def test_skipped(self):
     t = Task()
     t.skip(foo='bar')
     self.assertEqual(t.status, 'skipped')
     self.assertTrue(t.is_skipped())
     self.assertTrue(t.is_done())