'Test that keys are correctly generated from Agent v3 strings.'

def test_fromAgentv3(self):

    self._testPrivateFromString(keydata.privateRSA_agentv3, 'RSA', keydata.RSAData)
    self._testPrivateFromString(keydata.privateDSA_agentv3, 'DSA', keydata.DSAData)
    self.assertRaises(keys.BadKeyError, keys.Key.fromString, ('\x00\x00\x00\x07ssh-foo' + ('\x00\x00\x00\x01\x01' * 5)))
