File 0001-Avoid-using-assertGreater.patch of Package openstack-tempest
From 0933f9e261510fb74d347fdcc7469c8d4a0955d1 Mon Sep 17 00:00:00 2001
From: Vincent Untz <vuntz@suse.com>
Date: Sun, 19 Jan 2014 20:34:47 +0100
Subject: [PATCH] Avoid using assertGreater
This doesn't exist in python 2.6.
Change-Id: I8d41a568ac4c9fc7330077e6643b40eddc071f91
---
tempest/api/compute/servers/test_server_actions.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tempest/api/compute/servers/test_server_actions.py b/tempest/api/compute/servers/test_server_actions.py
index f073ebc..be02369 100644
--- a/tempest/api/compute/servers/test_server_actions.py
+++ b/tempest/api/compute/servers/test_server_actions.py
@@ -85,7 +85,8 @@ class ServerActionsTestJSON(base.BaseComputeTest):
# Log in and verify the boot time has changed
linux_client = RemoteClient(server, self.ssh_user, self.password)
new_boot_time = linux_client.get_boot_time()
- self.assertGreater(new_boot_time, boot_time)
+ self.assertTrue(new_boot_time > boot_time,
+ '%s > %s' % (new_boot_time, boot_time))
@skip_because(bug="1014647")
@attr(type='smoke')
@@ -105,7 +106,8 @@ class ServerActionsTestJSON(base.BaseComputeTest):
# Log in and verify the boot time has changed
linux_client = RemoteClient(server, self.ssh_user, self.password)
new_boot_time = linux_client.get_boot_time()
- self.assertGreater(new_boot_time, boot_time)
+ self.assertTrue(new_boot_time > boot_time,
+ '%s > %s' % (new_boot_time, boot_time))
@attr(type='smoke')
def test_rebuild_server(self):
--
1.8.4.1