Skip to content
Prev Previous commit
Next Next commit
[LIB-965] correct hosting tests;
  • Loading branch information
opalczynski committed Oct 28, 2016
commit 7ba0ffa2b6dad255131184a9d35efc6e95efab00
6 changes: 3 additions & 3 deletions tests/integration_tests_hosting.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class HostingIntegrationTests(InstanceMixin, IntegrationTest):

def test_create_file(self):
hosting = self._create_hosting('created_xyz')
hosting = self._create_hosting('created-xyz')
a_hosting_file = StringIO()
a_hosting_file.write('h1 {color: #541231;}')
a_hosting_file.seek(0)
Expand All @@ -23,12 +23,12 @@ def test_create_file(self):
self.assertEqual(hosting_file.path, 'styles/main.css')

def test_set_default(self):
hosting = self._create_hosting('default_xyz')
hosting = self._create_hosting('default-xyz')
hosting = hosting.set_default()
self.assertTrue('default', hosting.is_default)

def test_update_file(self):
hosting = self._create_hosting('update_xyz')
hosting = self._create_hosting('update-xyz')
a_hosting_file = StringIO()
a_hosting_file.write('h1 {color: #541231;}')
a_hosting_file.seek(0)
Expand Down