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)
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
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
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)
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)