'Accessing the L{keys.Key.keyObject} property emits a deprecation
warning.'

def test_deprecation(self):

    keys.Key.fromString(keydata.publicRSA_openssh).keyObject
    [warning] = self.flushWarnings([KeyKeyObjectTests.test_deprecation])
    self.assertIs(warning['category'], DeprecationWarning)
