Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Havana:Staging
openstack-tempest
0001-Avoid-using-assertGreater.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor