From 0ffa7588e1353dcac3d136b6b25098d0f5eaeb05 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 17 Dec 2014 13:04:33 -0500 Subject: [PATCH] Fix up a unit test for project paths --- awx/main/tests/jobs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tests/jobs.py b/awx/main/tests/jobs.py index cd7ea998b8..0d38297b74 100644 --- a/awx/main/tests/jobs.py +++ b/awx/main/tests/jobs.py @@ -20,6 +20,7 @@ from django.db import transaction from django.db.models import Q from django.test.client import Client from django.test.utils import override_settings +from django.utils.encoding import smart_str # Requests import requests @@ -796,7 +797,7 @@ class JobTemplateTest(BaseJobTestMixin, django.test.TestCase): self.assertEqual(jt.inventory.pk, data['inventory']) self.assertEqual(jt.credential, None) self.assertEqual(jt.project.pk, data['project']) - self.assertEqual(jt.playbook, data['playbook']) + self.assertEqual(smart_str(jt.playbook), data['playbook']) # Test that all required fields are really required. data['name'] = 'another new job template'