':py:obj:`X509Req.add_extensions` accepts a :py:obj:`list` of :py:obj:`X509Extension`
instances and adds them to the X509 request.'

def test_add_extensions(self):

    request = X509Req()
    request.add_extensions([X509Extension(b('basicConstraints'), True, b('CA:false'))])
    exts = request.get_extensions()
    self.assertEqual(len(exts), 1)
    self.assertEqual(exts[0].get_short_name(), b('basicConstraints'))
    self.assertEqual(exts[0].get_critical(), 1)
    self.assertEqual(exts[0].get_data(), b('0\x00'))
