':py:meth:`X509Name.get_components` returns a :py:data:`list` of
two-tuples of :py:data:`str`
giving the NIDs and associated values which make up the name.'

def test_get_components(self):

    a = self._x509name()
    self.assertEqual(a.get_components(), [])
    a.CN = 'foo'
    self.assertEqual(a.get_components(), [(b('CN'), b('foo'))])
    a.organizationalUnitName = 'bar'
    self.assertEqual(a.get_components(), [(b('CN'), b('foo')), (b('OU'), b('bar'))])
