

def test_keypair_list(self):
    fake_keypar1 = FakeKeypairModel()
    fake_keypar2 = FakeKeypairModel()
    self.nova.keypairs.list().AndReturn([fake_keypar1, fake_keypar2])
    self.mox.ReplayAll()
    keypair_ids = self.keypair_client.keypair_list()
    self.assertEqual(self[0], fake_keypar1.id)
    self.assertEqual(keypair_ids[1], fake_keypar2.id)

dataset/ETHPy150Open openstack/rack/rack/tests/resourceoperator/openstack/test_keypairs.py KeypairTestCase.test_keypair_list/VarMisuse@63/99 `keypair_ids`->`self`