':py:obj:`X509Type.has_expired` raises :py:obj:`TypeError` if called with any
arguments.'

def test_has_expired_wrong_args(self):

    cert = X509()
    self.assertRaises(TypeError, cert.has_expired, None)
