':py:meth:`X509Extension.get_data` raises :py:exc:`TypeError` if passed any arguments.'

def test_get_data_wrong_args(self):

    ext = X509Extension(b('basicConstraints'), True, b('CA:true'))
    self.assertRaises(TypeError, ext.get_data, None)
    self.assertRaises(TypeError, ext.get_data, 'foo')
    self.assertRaises(TypeError, ext.get_data, 7)
