278
290
def test_get_all_key_pairs(self):
279
291
"""Test that, after creating a user and project and generating
280
292
a key pair, that the API call to list key pairs works properly"""
288
298
rv = self.ec2.get_all_key_pairs()
289
299
results = [k for k in rv if k.name == keyname]
290
300
self.assertEquals(len(results), 1)