Fix failing PY2 and PY3 gate jobs
Please refer: http://logs.openstack.org/43/446943/1/check/gate-python-keystoneclient-python27-ubuntu-xenial/84b965d/console.html Closes-Bug: #1673761 Change-Id: Iefa74ffe8642f039a115e9ff4416c8f72d299317
This commit is contained in:
		
				
					committed by
					
						
						Steve Martinelli
					
				
			
			
				
	
			
			
			
						parent
						
							b264c4bbc8
						
					
				
				
					commit
					cfd3373086
				
			@@ -40,7 +40,7 @@ class ExceptionsArgsTest(utils.TestCase):
 | 
			
		||||
            method,
 | 
			
		||||
            url)
 | 
			
		||||
        self.assertIsInstance(ex, ex_cls)
 | 
			
		||||
        self.assertEqual(ex.message, json_data["error"]["message"])
 | 
			
		||||
        self.assertIn(json_data["error"]["message"], ex.message)
 | 
			
		||||
        self.assertEqual(ex.details, json_data["error"]["details"])
 | 
			
		||||
        self.assertEqual(ex.method, method)
 | 
			
		||||
        self.assertEqual(ex.url, url)
 | 
			
		||||
 
 | 
			
		||||
@@ -97,7 +97,7 @@ class ClientTest(utils.TestCase):
 | 
			
		||||
                cl.get('/hi')
 | 
			
		||||
        except exceptions.BadRequest as exc:
 | 
			
		||||
            exc_raised = True
 | 
			
		||||
            self.assertEqual(exc.message, "Error message string")
 | 
			
		||||
            self.assertEqual(exc.message, "Error message string (HTTP 400)")
 | 
			
		||||
        self.assertTrue(exc_raised, 'Exception not raised.')
 | 
			
		||||
 | 
			
		||||
    def test_post(self):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user