Exemplo n.º 1
0
def test_idd2grouplist():
    """py.test idd2grouplist"""
    data = (([(None, 'Lead Input'), (None, 'Simulation Data'), ('G1', 'Version'), ('G1', 'Version1'), ('G1', 'Version2'), ('G2', 'VersionG'), ('G2', 'VersionG1'), ('G2', 'VersionG2')], ), # glist
    )
    for glist, in data:
        fhandle = StringIO(iddtxt)
        result = iddgroups.idd2grouplist(fhandle)
        assert result == glist
Exemplo n.º 2
0
def test_idd2grouplist():
    """py.test idd2grouplist"""
    data = ((
        "./eppy/tests/EPlusInterfaceFunctions_tests/integration/iddgroups.idd",
        [(None, u'Lead Input'), (None, u'Simulation Data'), (u'G1', u'Version'), (u'G1', u'Version1'), (u'G1', u'Version2'), (u'G2', u'VersionG'), (u'G2', u'VersionG1'), (u'G2', u'VersionG2')], ), # glist
    ) 
    for fname, glist in data:
        result = iddgroups.idd2grouplist(fname)
        assert result == glist
        
Exemplo n.º 3
0
def test_idd2grouplist():
    """py.test idd2grouplist"""
    data = (
        ([(None, 'Lead Input'), (None, 'Simulation Data'), ('G1', 'Version'),
          ('G1', 'Version1'), ('G1', 'Version2'), ('G2', 'VersionG'),
          ('G2', 'VersionG1'), ('G2', 'VersionG2')], ),  # glist
    )
    for glist, in data:
        fhandle = StringIO(iddtxt)
        result = iddgroups.idd2grouplist(fhandle)
        assert result == glist
Exemplo n.º 4
0
def test_idd2grouplist():
    """py.test idd2grouplist"""
    data = (
        (
            "./eppy/tests/EPlusInterfaceFunctions_tests/integration/iddgroups.idd",
            [(None, u'Lead Input'), (None, u'Simulation Data'),
             (u'G1', u'Version'), (u'G1', u'Version1'), (u'G1', u'Version2'),
             (u'G2', u'VersionG'), (u'G2', u'VersionG1'),
             (u'G2', u'VersionG2')],
        ),  # glist
    )
    for fname, glist in data:
        result = iddgroups.idd2grouplist(fname)
        assert result == glist
Exemplo n.º 5
0
def test_idd2grouplist():
    """py.test idd2grouplist"""
    data = (
        ([
            (None, "Lead Input"),
            (None, "Simulation Data"),
            ("G1", "Version"),
            ("G1", "Version1"),
            ("G1", "Version2"),
            ("G2", "VersionG"),
            ("G2", "VersionG1"),
            ("G2", "VersionG2"),
        ], ),  # glist
    )
    for (glist, ) in data:
        fhandle = StringIO(iddtxt)
        result = iddgroups.idd2grouplist(fhandle)
        assert result == glist
Exemplo n.º 6
0
def test_idd2grouplist():
    """py.test idd2grouplist"""
    data = (
        (
            "./eppy/tests/EPlusInterfaceFunctions_tests/integration/iddgroups.idd",
            [
                (None, "Lead Input"),
                (None, "Simulation Data"),
                ("G1", "Version"),
                ("G1", "Version1"),
                ("G1", "Version2"),
                ("G2", "VersionG"),
                ("G2", "VersionG1"),
                ("G2", "VersionG2"),
            ],
        ),  # glist
    )
    for fname, glist in data:
        result = iddgroups.idd2grouplist(fname)
        assert result == glist