def test__build_environment_returns_empty_dict_without_settings(self): sd = SubmissionDetails() dict = sd._SubmissionDetails__build_environment(self.t) self.assertEqual(dict, {})
def test__build_environment_returns_valid_dict(self): p1 = EnvironmentFactory.create(task=self.t, env="Test", value="McPath") sd = SubmissionDetails() dict = sd._SubmissionDetails__build_environment(self.t) self.assertEqual(dict, {"Test": "McPath"})