Пример #1
0
 def test__eq__true(self):
     action_runner = mock.Mock()
     first = job.Job("jobname", 'scheduler', action_runner=action_runner)
     second = job.Job("jobname", 'scheduler', action_runner=action_runner)
     assert_equal(first, second)
Пример #2
0
 def test__ne__(self):
     other_job = job.Job("jobname", 'scheduler', run_collection=MagicMock())
     assert self.job != other_job
     other_job.update_from_job(self.job)
     assert not self.job != other_job
Пример #3
0
 def test__ne__(self):
     other_job = job.Job("jobname", 'scheduler')
     assert self.job != other_job
     other_job.update_from_job(self.job)
     assert not self.job != other_job
Пример #4
0
 def test__eq__false(self):
     first = job.Job("jobname", 'scheduler', action_runner=mock.Mock())
     second = job.Job("jobname", 'scheduler', action_runner=mock.Mock())
     assert_not_equal(first, second)
Пример #5
0
 def test__eq__(self):
     other_job = job.Job("jobname", 'scheduler')
     assert not self.job == other_job
     other_job.update_from_job(self.job)
     assert_equal(self.job, other_job)