'Assert that we can remove all identities.'

def test_removeAllIdentities(self):

    d = self.client.removeAllIdentities()
    self.pump.flush()
    def _check(ignored):
        self.assertEqual(0, len(self.server.factory.keys))
    return d.addCallback(_check)
