1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Lots of text_type

This commit is contained in:
Ross McFarland
2019-07-29 08:37:47 -07:00
parent ee0efc5b3a
commit a9d0eef3ba
17 changed files with 77 additions and 64 deletions

View File

@@ -7,6 +7,7 @@ from __future__ import absolute_import, division, print_function, \
import json
import re
from six import text_type
from unittest import TestCase
from urlparse import urlparse
@@ -53,7 +54,7 @@ class TestRackspaceProvider(TestCase):
with self.assertRaises(Exception) as ctx:
zone = Zone('unit.tests.', [])
self.provider.populate(zone)
self.assertTrue('unauthorized' in ctx.exception.message)
self.assertTrue('unauthorized' in text_type(ctx.exception))
self.assertTrue(mock.called_once)
def test_server_error(self):