'A public DSA key is correctly generated from a public key blob.'

def test_fromBlobDSA(self):

    dsaPublicData = {'p': keydata.DSAData['p'], 'q': keydata.DSAData['q'], 'g': keydata.DSAData['g'], 'y': keydata.DSAData['y']}
    dsaBlob = ((((common.NS('ssh-dss') + common.MP(dsaPublicData['p'])) + common.MP(dsaPublicData['q'])) + common.MP(dsaPublicData['g'])) + common.MP(dsaPublicData['y']))
    dsaKey = keys.Key.fromString(dsaBlob)
    self.assertTrue(dsaKey.isPublic())
    self.assertEqual(dsaPublicData, dsaKey.data())
