def test_idf2txt(): """py.test for idf2txt""" data = ( (""" VERSION, 7.3; !- Version Identifier SIMULATIONCONTROL, Yes, !- Do Zone Sizing Calculation Yes, !- Do System Sizing Calculation Yes, !- Do Plant Sizing Calculation No, !- Run Simulation for Sizing Periods Yes; !- Run Simulation for Weather File Run Periods BUILDING, Empire State Building, !- Name 30.0, !- North Axis City, !- Terrain 0.04, !- Loads Convergence Tolerance Value 0.4, !- Temperature Convergence Tolerance Value FullExterior, !- Solar Distribution 25, !- Maximum Number of Warmup Days 6; !- Minimum Number of Warmup Days SITE:LOCATION, CHICAGO_IL_USA TMY2-94846, !- Name 41.78, !- Latitude -87.75, !- Longitude -6.0, !- Time Zone 190.0; !- Elevation """, """; BUILDING, Empire State Building, 30.0, City, 0.04, 0.4, FullExterior, 25.0, 6.0; SIMULATIONCONTROL, Yes, Yes, Yes, No, Yes; SITE:LOCATION, CHICAGO_IL_USA TMY2-94846, 41.78, -87.75, -6.0, 190.0; VERSION, 7.3; """), # intxt, outtxt ) for intxt, outtxt in data: result = simpleread.idf2txt(intxt) assert result == outtxt
def test_idf2txt(): """py.test for idf2txt""" data = (( """ VERSION, 7.3; !- Version Identifier SIMULATIONCONTROL, Yes, !- Do Zone Sizing Calculation Yes, !- Do System Sizing Calculation Yes, !- Do Plant Sizing Calculation No, !- Run Simulation for Sizing Periods Yes; !- Run Simulation for Weather File Run Periods BUILDING, Empire State Building, !- Name 30.0, !- North Axis City, !- Terrain 0.04, !- Loads Convergence Tolerance Value 0.4, !- Temperature Convergence Tolerance Value FullExterior, !- Solar Distribution 25, !- Maximum Number of Warmup Days 6; !- Minimum Number of Warmup Days SITE:LOCATION, CHICAGO_IL_USA TMY2-94846, !- Name 41.78, !- Latitude -87.75, !- Longitude -6.0, !- Time Zone 190.0; !- Elevation """, """; BUILDING, Empire State Building, 30.0, City, 0.04, 0.4, FullExterior, 25.0, 6.0; SIMULATIONCONTROL, Yes, Yes, Yes, No, Yes; SITE:LOCATION, CHICAGO_IL_USA TMY2-94846, 41.78, -87.75, -6.0, 190.0; VERSION, 7.3; """), # intxt, outtxt ) for intxt, outtxt in data: result = simpleread.idf2txt(intxt) assert result == outtxt