':py:meth:`X509Extension.get_data` returns a string giving the data of the
extension.'

def test_get_data(self):

    ext = X509Extension(b('basicConstraints'), True, b('CA:true'))
    self.assertEqual(ext.get_data(), b('0\x03\x01\x01\xff'))
