def test_job_does_not_raise_exception_if_start_date_is_same_as_due_date(
         self):
     job = Job(due_date=datetime.date(2000, 1, 1))
     job.start_date = datetime.date(2000, 1, 1)
 def test_job_raises_exception_if_start_date_is_before_due_date_in_setter(
         self):
     with self.assertRaisesRegexp(JobException, 'after'):
         job = Job(due_date=datetime.date(2000, 1, 1))
         job.start_date = datetime.date(1999, 1, 1)
 def test_job_does_not_raise_exception_if_start_date_is_same_as_due_date(self):
     job = Job(due_date = datetime.date(2000, 1, 1))
     job.start_date = datetime.date(2000, 1, 1)
 def test_job_raises_exception_if_start_date_is_before_due_date_in_setter(self):
     with self.assertRaisesRegexp(JobException, 'after'):
         job = Job(due_date = datetime.date(2000, 1, 1))
         job.start_date = datetime.date(1999, 1, 1)
Exemplo n.º 5
0
 def test_job_due_date_can_be_string(self):
     job = Job(due_date=datetime.date(2001, 1, 1))
     job.start_date = '2015-08-19'
 def test_job_due_date_can_be_string(self):
     job = Job(due_date = datetime.date(2001, 1, 1))
     job.start_date = '2015-08-19'