def test_writes_objects_to_file(parser): filename = test.path_to_datafile('expexted_file.idf') if os.path.exists(filename): os.remove(filename) objects = ['Class value1 value2 value3'.split(' ')] parser.write_file(objects, filename, eplus.InlineIdfFormatter()) os.remove(filename)
def test_parses_from_file(parser): expected = ['Class value1 value2 value3'.split(' ')] objects = parser.parse_file(test.path_to_datafile('simple_object.idf')) assert objects == expected