make migrations unicode safe, fixes #1345

This commit is contained in:
Wayne Witzel III
2016-03-30 16:36:49 -04:00
parent 33a31a1da7
commit 097bd805fa
2 changed files with 29 additions and 26 deletions

View File

@@ -9,7 +9,9 @@ from awx.main.models import Role
@pytest.mark.django_db
def test_user_admin(user_project, project, user):
joe = user('joe', is_superuser = False)
username = unicode("\xc3\xb4", "utf-8")
joe = user(username, is_superuser = False)
admin = user('admin', is_superuser = True)
sa = Role.singleton('System Administrator')