Skip to content
Prev Previous commit
Next Next commit
[LIB-813] correct tests;
  • Loading branch information
opalczynski committed Jul 21, 2016
commit e02cd460df88d990b10778bde75a2346d2ed546c
8 changes: 5 additions & 3 deletions tests/integration_tests_hosting.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
# -*- coding: utf-8 -*-
import uuid

from tests.integration_test import InstanceMixin, IntegrationTest

try:
# python2
from StringIO import StringIO
except ImportError:
# python3
from io import StringIO

from tests.integration_test import InstanceMixin, IntegrationTest


class HostingIntegrationTests(InstanceMixin, IntegrationTest):

def setUp(self):
self.hosting = self.instance.hostings.create(
label='test12',
description='desc',
domains=['test.test.io']
domains=['test.test{}.io'.format(uuid.uuid4().hex[:5])]
)

def test_create_file(self):
Expand Down