def test_parseSSData_2():
    """ Calling parseSSData after setting the readOption to parse HELIX,
    STRAND, TURN, etc..."""
    from MolKit.pdbParser import PdbParser
    parser = PdbParser('Data/1crn.pdb')
    parser.SetReadOptions('HELIX')
    parser.SetReadOptions('SHEET')
    parser.SetReadOptions('TURN')
    mols = parser.parse()
    assert parser.recordInfo.has_key('HELIX')
    assert parser.recordInfo.has_key('SHEET')
    assert parser.recordInfo.has_key('TURN')
    ssDataForMol = parser.parseSSData(mols[0])
def test_parseMol_HelixRec():
    from MolKit.pdbParser import PdbParser
    parser = PdbParser('Data/1crn.pdb')
    parser.SetReadOptions('HELIX')
    assert 'HELIX' in parser.pdbRecordParser.keys()
    mols = parser.parse()
    assert parser.recordInfo.has_key('HELIX')