def test_eplus_passed_simple_dd_only(self):
     with open(os.path.join(self.run_dir, 'in.idf'), 'w') as f:
         f.write('')
     return_val = execute_energyplus(
         ExecutionArguments(build_tree=self.build_tree,
                            entry_name='entry_name',
                            test_run_directory=self.run_dir,
                            run_type=ForceRunType.DD,
                            min_reporting_freq=ReportingFreq.HOURLY,
                            this_parametric_file=False,
                            weather_file_name=''))
     self.assertEqual('/dummy/', return_val[0])
     self.assertEqual('entry_name', return_val[1])
     self.assertTrue(return_val[2])
     self.assertFalse(return_val[3])
 def test_eplus_failed_invalid_epw(self):
     weather_file = os.path.join(self.resource_dir, 'DOES.NOT.EXIST.in.epw')
     with open(os.path.join(self.run_dir, 'in.idf'), 'w') as f:
         f.write('')
     return_val = execute_energyplus(
         ExecutionArguments(build_tree=self.build_tree,
                            entry_name='entry_name',
                            test_run_directory=self.run_dir,
                            run_type=ForceRunType.ANNUAL,
                            min_reporting_freq=ReportingFreq.HOURLY,
                            this_parametric_file=False,
                            weather_file_name=weather_file))
     self.assertEqual('/dummy/', return_val[0])
     self.assertEqual('entry_name', return_val[1])
     self.assertFalse(return_val[2])  # Fail
     self.assertFalse(return_val[3])