コード例 #1
0
ファイル: test_hvacbuilder.py プロジェクト: eayoungs/eppy
def test_makeductcomponent():
    """py.test for makeductcomponent"""
    tdata = (("aduct", ["DUCT", "aduct", "aduct_inlet", "aduct_outlet"]),)  # dname, duct_obj
    for dname, duct_obj in tdata:
        fhandle = StringIO("")
        idf = IDF(fhandle)
        result = hvacbuilder.makeductcomponent(idf, dname)
        assert result.obj == duct_obj
コード例 #2
0
def test_makeductcomponent():
    """py.test for makeductcomponent"""
    tdata = (
        ("aduct", ["DUCT", "aduct", "aduct_inlet", "aduct_outlet"]),  # dname, duct_obj
    )
    for dname, duct_obj in tdata:
        fhandle = StringIO("")
        idf = IDF(fhandle)
        result = hvacbuilder.makeductcomponent(idf, dname)
        assert result.obj == duct_obj
コード例 #3
0
ファイル: test_hvacbuilder.py プロジェクト: jamiebull1/eppy
def test_makeductcomponent():
    """py.test for makeductcomponent"""
    tdata = ((
        'aduct',
        ['DUCT', 'aduct', 'aduct_inlet', 'aduct_outlet']
        ), # dname, duct_obj
            )
    for dname, duct_obj in tdata:
        fhandle = StringIO("")
        idf = IDF(fhandle)
        result = hvacbuilder.makeductcomponent(idf, dname)
        assert result.obj == duct_obj