コード例 #1
0
def test_parsegetRecords():
    # Test the change made in the lambda function of getRecords method
    from MolKit.pdbParser import PdbParser
    parser = PdbParser("Data/1crn.pdb")
    parser.readFile()
    parser.getKeys()
    
    atmRec = parser.getRecords(parser.allLines,"ATOM")
    assert len(atmRec) == 327
コード例 #2
0
def test_parsegetRecords():
    # Test the change made in the lambda function of getRecords method
    from MolKit.pdbParser import PdbParser
    parser = PdbParser("Data/1crn.pdb")
    parser.readFile()
    parser.getKeys()

    atmRec = parser.getRecords(parser.allLines, "ATOM")
    assert len(atmRec) == 327