Пример #1
0
    def test_param_01(self):
        card = PARAM('NOCOMP', [-1])
        #print('%r' % card)
        assert str(card) == 'PARAM     NOCOMP      -1\n', '%r' % str(card)

        cardi = BDFCard(['PARAM', 'NOCOMP', -1])
        card = PARAM.add_card(cardi)
        assert str(card) == 'PARAM     NOCOMP      -1\n', '%r' % str(card)
Пример #2
0
class TestOther(unittest.TestCase):
    card = PARAM('NOCOMP', [-1])
    #print('%r' % card)
    assert str(card) == 'PARAM     NOCOMP      -1\n', '%r' % str(card)

    cardi = BDFCard(['PARAM', 'NOCOMP', -1])
    card = PARAM.add_card(cardi)
    assert str(card) == 'PARAM     NOCOMP      -1\n', '%r' % str(card)