Fix incompatibility in python3
Fix the issue in tempest tests Change-Id: I7db75adb06399003a82f4a522e4ea821ae6271e2
This commit is contained in:
parent
f6211b4e5c
commit
ad91e171db
@ -35,7 +35,7 @@ class TestQueues(base.BaseV1MessagingTest):
|
|||||||
# NOTE(gmann): create_queue returns response status code as 201
|
# NOTE(gmann): create_queue returns response status code as 201
|
||||||
# so specifically checking the expected empty response body as
|
# so specifically checking the expected empty response body as
|
||||||
# this is not going to be checked in response_checker().
|
# this is not going to be checked in response_checker().
|
||||||
self.assertEqual('', body)
|
self.assertEqual(b'', body)
|
||||||
|
|
||||||
self.delete_queue(queue_name)
|
self.delete_queue(queue_name)
|
||||||
self.assertRaises(lib_exc.NotFound,
|
self.assertRaises(lib_exc.NotFound,
|
||||||
|
@ -33,7 +33,7 @@ class TestQueues(base.BaseV11MessagingTest):
|
|||||||
# NOTE(gmann): create_queue returns response status code as 201
|
# NOTE(gmann): create_queue returns response status code as 201
|
||||||
# so specifically checking the expected empty response body as
|
# so specifically checking the expected empty response body as
|
||||||
# this is not going to be checked in response_checker().
|
# this is not going to be checked in response_checker().
|
||||||
self.assertEqual('', body)
|
self.assertEqual(b'', body)
|
||||||
|
|
||||||
self.delete_queue(queue_name)
|
self.delete_queue(queue_name)
|
||||||
# lazy queue
|
# lazy queue
|
||||||
|
@ -36,7 +36,7 @@ class TestQueues(base.BaseV2MessagingTest):
|
|||||||
# NOTE(gmann): create_queue returns response status code as 201
|
# NOTE(gmann): create_queue returns response status code as 201
|
||||||
# so specifically checking the expected empty response body as
|
# so specifically checking the expected empty response body as
|
||||||
# this is not going to be checked in response_checker().
|
# this is not going to be checked in response_checker().
|
||||||
self.assertEqual('', body)
|
self.assertEqual(b'', body)
|
||||||
|
|
||||||
self.delete_queue(queue_name)
|
self.delete_queue(queue_name)
|
||||||
# lazy queue
|
# lazy queue
|
||||||
|
Loading…
Reference in New Issue
Block a user