Skip to content

Commit 9186885

Browse files
committed
Remove checks for None dates in keypair functional tests
Steve made a comment about this and I agree, we should try and keep these tests and simple as possible and this kind of thing doesn't add much value. Change-Id: I1eb73e5f38904ee6c74f6c7e27fc66cfe198619d
1 parent f8bbbdc commit 9186885

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎functional/tests/compute/v2/test_keypair.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class KeypairTests(test.TestCase):
1919
"""Functional tests for compute keypairs. """
2020
NAME = uuid.uuid4().hex
2121
HEADERS = ['Name']
22-
FIELDS = ['deleted_at', 'name', 'updated_at']
22+
FIELDS = ['name']
2323

2424
@classmethod
2525
def setUpClass(cls):
@@ -40,5 +40,4 @@ def test_keypair_list(self):
4040
def test_keypair_show(self):
4141
opts = self.get_show_opts(self.FIELDS)
4242
raw_output = self.openstack('keypair show ' + self.NAME + opts)
43-
expected = "None\n" + self.NAME + "\nNone\n"
44-
self.assertEqual(expected, raw_output)
43+
self.assertEqual(self.NAME + "\n", raw_output)

0 commit comments

Comments
 (0)