Beispiel #1
0
def test_idd2group():
    """py.test for idd2group"""
    data = (
        ({
            'G2': ['VersionG', 'VersionG1', 'VersionG2'],
            'G1': ['Version', 'Version1', 'Version2'],
            None: ['Lead Input', 'Simulation Data']
        }, ),  # gdict
    )
    for gdict, in data:
        fhandle = StringIO(iddtxt)
        result = iddgroups.idd2group(fhandle)
        assert result == gdict
Beispiel #2
0
def test_idd2group():
    """py.test for idd2group"""
    data = (
        ({
            "G2": ["VersionG", "VersionG1", "VersionG2"],
            "G1": ["Version", "Version1", "Version2"],
            None: ["Lead Input", "Simulation Data"],
        }, ),  # gdict
    )
    for (gdict, ) in data:
        fhandle = StringIO(iddtxt)
        result = iddgroups.idd2group(fhandle)
        assert result == gdict
Beispiel #3
0
def test_idd2group():
    """py.test for idd2group"""
    data = ((
        "./eppy/tests/EPlusInterfaceFunctions_tests/integration/iddgroups.idd",
        {
            'G2': ['VersionG', 'VersionG1', 'VersionG2'],
            'G1': ['Version', 'Version1', 'Version2'],
            None: ['Lead Input', 'Simulation Data']
        },
    ), # gdict
  )
    for fname, gdict in data:
        result = iddgroups.idd2group(fname)
        assert result == gdict
Beispiel #4
0
def test_idd2group():
    """py.test for idd2group"""
    data = ((
        {
            'G2': ['VersionG', 'VersionG1', 'VersionG2'],
            'G1': ['Version', 'Version1', 'Version2'],
            None: ['Lead Input', 'Simulation Data']
        },
    ), # gdict
  )
    for gdict, in data:
        fhandle = StringIO(iddtxt)
        result = iddgroups.idd2group(fhandle)
        assert result == gdict
Beispiel #5
0
def test_idd2group():
    """py.test for idd2group"""
    data = (
        (
            "./eppy/tests/EPlusInterfaceFunctions_tests/integration/iddgroups.idd",
            {
                "G2": ["VersionG", "VersionG1", "VersionG2"],
                "G1": ["Version", "Version1", "Version2"],
                None: ["Lead Input", "Simulation Data"],
            },
        ),  # gdict
    )
    for fname, gdict in data:
        result = iddgroups.idd2group(fname)
        assert result == gdict
Beispiel #6
0
def test_idd2group():
    """py.test for idd2group"""
    data = (
        (
            "./eppy/tests/EPlusInterfaceFunctions_tests/integration/iddgroups.idd",
            {
                'G2': ['VersionG', 'VersionG1', 'VersionG2'],
                'G1': ['Version', 'Version1', 'Version2'],
                None: ['Lead Input', 'Simulation Data']
            },
        ),  # gdict
    )
    for fname, gdict in data:
        result = iddgroups.idd2group(fname)
        assert result == gdict