Reverse assert arguments so the errors make sense

Change-Id: I2919db71019ee56246eb0398ddc0a3170f17e6b2
This commit is contained in:
Angus Salkeld 2013-10-23 18:47:04 -10:00
parent d0a82ffd42
commit 7f0c49e742

View File

@ -31,7 +31,7 @@ class FaultMiddlewareTest(HeatTestCase):
'type': 'StackNotFound'}, 'type': 'StackNotFound'},
'explanation': 'The resource could not be found.', 'explanation': 'The resource could not be found.',
'title': 'Not Found'} 'title': 'Not Found'}
self.assertEqual(msg, expected) self.assertEqual(expected, msg)
def test_openstack_exception_without_kwargs(self): def test_openstack_exception_without_kwargs(self):
wrapper = fault.FaultWrapper(None) wrapper = fault.FaultWrapper(None)
@ -45,7 +45,7 @@ class FaultMiddlewareTest(HeatTestCase):
'incapable of performing the requested ' 'incapable of performing the requested '
'operation.', 'operation.',
'title': 'Internal Server Error'} 'title': 'Internal Server Error'}
self.assertEqual(msg, expected) self.assertEqual(expected, msg)
def test_exception_with_non_ascii_chars(self): def test_exception_with_non_ascii_chars(self):
# We set debug to true to test the code path for serializing traces too # We set debug to true to test the code path for serializing traces too
@ -65,7 +65,7 @@ class FaultMiddlewareTest(HeatTestCase):
'incapable of performing the requested ' 'incapable of performing the requested '
'operation.'), 'operation.'),
'title': 'Internal Server Error'} 'title': 'Internal Server Error'}
self.assertEqual(msg, expected) self.assertEqual(expected, msg)
def test_remote_exception(self): def test_remote_exception(self):
# We want tracebacks # We want tracebacks
@ -84,4 +84,4 @@ class FaultMiddlewareTest(HeatTestCase):
'type': 'StackNotFound'}, 'type': 'StackNotFound'},
'explanation': 'The resource could not be found.', 'explanation': 'The resource could not be found.',
'title': 'Not Found'} 'title': 'Not Found'}
self.assertEqual(msg, expected) self.assertEqual(expected, msg)