

def test_keypair_show(self):
    fake_keypar1 = FakeKeypairModel()
    self.nova.keypairs.get(fake_keypar1.id).AndReturn(fake_keypar1)
    self.mox.ReplayAll()
    keypair = self.keypair_client.keypair_show(fake_keypar1.id)
    self.assertEqual(keypair, fake_keypar1)

dataset/ETHPy150Open openstack/rack/rack/tests/resourceoperator/openstack/test_keypairs.py KeypairTestCase.test_keypair_show/original