

def test_keypair_create(self):
    fake_keypar1 = FakeKeypairModel()
    self.nova.keypairs.create(fake_keypar1.name).AndReturn(fake_keypar1)
    self.mox.ReplayAll()
    keypair = self.keypair_client.keypair_create(fake_keypar1.name)
    self.assertEqual(keypair['nova_keypair_id'], fake_keypar1.name)
    fake_keypar1.assertEqual(keypair['private_key'], fake_keypar1.private_key)

dataset/ETHPy150Open openstack/rack/rack/tests/resourceoperator/openstack/test_keypairs.py KeypairTestCase.test_keypair_create/VarMisuse@69/113 `self`->`fake_keypar1`