':py:attr:`PKeyType.bits` and :py:attr:`PKeyType.type` return :py:data:`0` before the key is
generated.  :py:attr:`PKeyType.check` raises :py:exc:`TypeError` before the key is
generated.'

def test_pregeneration(self):

    key = PKey()
    self.assertEqual(key.type(), 0)
    self.assertEqual(key.bits(), 0)
    self.assertRaises(TypeError, key.check)
