def test_from_dict_creates_job_source_bundle(self, mock_job_source_bundle):
        job_dict = {
            'bundle_name': self.fake_bundle_name,
            'target_path': self.fake_target_name
        }
        JobSourceBundle.from_dict(job_dict)

        mock_job_source_bundle.assert_called_with(self.fake_bundle_name,
                                                  self.fake_target_name)
 def test_from_dict_returns_job_source_bundle(self):
     job_dict = {
         'bundle_name': self.fake_bundle_name,
         'target_path': self.fake_target_name
     }
     self.assertIsInstance(JobSourceBundle.from_dict(job_dict),
                           JobSourceBundle)