1212from django .urls import reverse as urlreverse
1313from django .contrib .auth .models import User
1414
15- from ietf .utils .test_utils import login_testing_unauthorized , TestCase , unicontent
15+ from ietf .utils .test_utils import login_testing_unauthorized , TestCase
1616import ietf .stats .views
1717
1818from ietf .submit .models import Submission
@@ -214,7 +214,7 @@ def test_get_meeting_registration_data(self, mock_get):
214214 '''Test function to get reg data. Confirm leading/trailing spaces stripped'''
215215 response = Response ()
216216 response .status_code = 200
217- response ._content = '[{"LastName":"Smith ","FirstName":" John","Company":"ABC","Country":"US","Email":"john.doe@example.us"}]'
217+ response ._content = b '[{"LastName":"Smith ","FirstName":" John","Company":"ABC","Country":"US","Email":"john.doe@example.us"}]'
218218 mock_get .return_value = response
219219 meeting = MeetingFactory (type_id = 'ietf' , date = datetime .date (2016 ,7 ,14 ), number = "96" )
220220 get_meeting_registration_data (meeting )
@@ -226,7 +226,7 @@ def test_get_meeting_registration_data(self, mock_get):
226226 def test_get_meeting_registration_data_user_exists (self , mock_get ):
227227 response = Response ()
228228 response .status_code = 200
229- response ._content = '[{"LastName":"Smith","FirstName":"John","Company":"ABC","Country":"US","Email":"john.doe@example.us"}]'
229+ response ._content = b '[{"LastName":"Smith","FirstName":"John","Company":"ABC","Country":"US","Email":"john.doe@example.us"}]'
230230 email = "john.doe@example.us"
231231 user = User .objects .create (username = email )
232232 user .save ()
0 commit comments