def testLoadPemGenericWhenSpaces(self):
    header = 'BEGIN'
    footer = 'END'

    input =  '   \n\n\n-----BEGIN-----   \nhello   \n-----END-----  \n\n\n  '
    expected = [
        '-----BEGIN-----',
        'hello',
        '-----END-----',
    ]

    self.assertEqual(expected, x509.LoadPemGeneric(input, header, footer))
Test the Is? functions.
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509ModuleTest.testLoadPemGenericWhenSpaces--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/tests/vfs/tsk_partition_file_entry.py/TSKPartitionFileEntryTest.testIsFunctions