'L{keys.Key.toString} serializes a DSA key in OpenSSH format.'

def test_toOpenSSHDSA(self):

    key = keys.Key.fromString(keydata.privateDSA_lsh)
    self.assertEqual(key.toString('openssh'), keydata.privateDSA_openssh)
    self.assertEqual(key.public().toString('openssh', 'comment'), keydata.publicDSA_openssh)
    self.assertEqual(key.public().toString('openssh'), keydata.publicDSA_openssh[:(-8)])
