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
This commit is contained in:
Terry Howe 2015-05-22 13:00:03 -07:00
parent f8bbbdce24
commit 9186885553

View File

@ -19,7 +19,7 @@ class KeypairTests(test.TestCase):
"""Functional tests for compute keypairs. """
NAME = uuid.uuid4().hex
HEADERS = ['Name']
FIELDS = ['deleted_at', 'name', 'updated_at']
FIELDS = ['name']
@classmethod
def setUpClass(cls):
@ -40,5 +40,4 @@ class KeypairTests(test.TestCase):
def test_keypair_show(self):
opts = self.get_show_opts(self.FIELDS)
raw_output = self.openstack('keypair show ' + self.NAME + opts)
expected = "None\n" + self.NAME + "\nNone\n"
self.assertEqual(expected, raw_output)
self.assertEqual(self.NAME + "\n", raw_output)