'Assert that we get all of the keys/comments that we add when we issue a
request for all identities.'

def test_requestIdentities(self):

    d = self.client.requestIdentities()
    self.pump.flush()
    def _check(keyt):
        expected = {}
        expected[self.dsaPublic.blob()] = 'a    comment'
        expected[self.rsaPublic.blob()] = 'another    comment'
        received = {}
        for k in keyt:
            received[keys.Key.fromString(k[0], type='blob').blob()] = k[1]
        self.assertEqual(expected, received)
    return d.addCallback(_check)
