

def test_keypair_list(self):
    'Test keypair list command.\n\n        Test steps:\n        1) Create keypair in setUp\n        2) List keypairs\n        3) Check output table structure\n        4) Check keypair name in output\n        '
    HEADERS = ['Name', 'Fingerprint']
    raw_output = self.openstack('keypair list')
    items = self.parse_listing(raw_output)
    self.assert_table_structure(items, HEADERS)
    self.assertIn(self.KPName, raw_output)

dataset/ETHPy150Open dtroyer/python-openstackclient/functional/tests/compute/v2/test_keypair.py KeypairTests.test_keypair_list/original