# -*- encoding: utf-8 -*-

import os
import unittest
from stonemason.service.tileserver import AppBuilder


class TestExample(unittest.TestCase):
    def setUp(self):
        os.environ['EXAMPLE_APP_ENV'] = 'dev'

        app = AppBuilder().build()
        self.client = app.test_client()

    def test_app(self):
        resp = self.client.get('/')
        self.assertEqual('Hello World!', resp.data)

# -*- encoding: utf-8 -*-

import os
import unittest
from stonemason.service.tileserver import AppBuilder


class TestExample(unittest.TestCase):
    def setUp(self):
        os.environ['EXAMPLE_APP_ENV'] = 'dev'

        app = AppBuilder().build()
        self.client = app.test_client()

    def test_app(self):
        resp = self.client.get('/')
        self.assertEqual(b'Hello World!', resp.data)

Fix a compatible bug. Response data is binary in Python 3.
Fix: Fix a compatible bug. Response data is binary in Python 3.
