':py:obj:`load_pkcs12` raises :py:obj:`OpenSSL.crypto.Error` when passed a string
which is not a PKCS12 dump.'

def test_load_pkcs12_garbage(self):

    passwd = 'whatever'
    e = self.assertRaises(Error, load_pkcs12, 'fruit    loops', passwd)
    self.assertEqual(e.args[0][0][0], 'asn1    encoding    routines')
    self.assertEqual(len(e.args[0][0]), 3)
