Skip to content

Commit

Permalink
authome.test: forgot Python 2 needs prompts for UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Percival committed Jul 27, 2017
1 parent 08ccc0f commit cbfe722
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion authome/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from django.contrib.auth.models import User
from django.shortcuts import reverse
from django.test import TestCase, Client
Expand Down Expand Up @@ -82,7 +83,7 @@ def test_auth_adal_with_bad_creds(self):
)
self.assertEqual(response.status_code, 401)
response = self.client.get(self.auth_url,
HTTP_AUTHORIZATION='Basic πŸ˜­πŸ˜­πŸ˜­πŸ˜•πŸ˜•πŸ˜•'
HTTP_AUTHORIZATION=u'Basic πŸ˜­πŸ˜­πŸ˜­πŸ˜•πŸ˜•πŸ˜•'
)
self.assertEqual(response.status_code, 401)
response = self.client.get(self.auth_url,
Expand Down

0 comments on commit cbfe722

Please sign in to comment.