def test_ignoresUnparsableKeys(self):
        def failOnSome(line):
            if line.startswith(b'f'):
                raise keys.BadKeyError('failed to parse')
            return line

        fileobj = BytesIO(b'failed key\ngood key')
        result = checkers.readAuthorizedKeyFile(fileobj,
                                                parseKey=failOnSome)
        self.assertEqual([b'good key'], list(result))
Generate SQL statements to grant privileges on new column
dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_checkers.py/AuthorizedKeyFileReaderTests.test_ignoresUnparsableKeys--crossover with--dataset/ETHPy150Open perseas/Pyrseas/pyrseas/dbobject/column.py/Column.add_privs