def test_output_file_property_3(self): scenario = ScenarioFactory(xml=get_xml("tororo.xml")) scenario.new_simulation = Simulation.objects.create() scenario.save() scenario.new_simulation.set_model_stdout("123") self.assertEqual(scenario.output_file.read(), "123")
def test_output_file_property_2(self): scenario = ScenarioFactory(xml=get_xml("tororo.xml")) scenario.new_simulation = Simulation.objects.create() scenario.save() self.assertEqual(scenario.output_file, None)