'If the :py:data:`subject` parameter is given a value which is not an
:py:class:`X509` instance, :py:exc:`TypeError` is raised.'

def test_invalid_subject(self):

    for badObj in [True, object(), 'hello', [], self]:
        self.assertRaises(TypeError, X509Extension, 'basicConstraints', False, 'CA:TRUE', subject=badObj)
