From 2faaee02a0e81063fe95509c4848fee06ad9c638 Mon Sep 17 00:00:00 2001 From: Joachim Krebs Date: Wed, 15 Dec 2010 21:00:24 +0000 Subject: Made static tests pass on Windows. --- pyramid/tests/test_static.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pyramid/tests/test_static.py b/pyramid/tests/test_static.py index d92e5ddac..66a4adaa4 100644 --- a/pyramid/tests/test_static.py +++ b/pyramid/tests/test_static.py @@ -1,6 +1,8 @@ import unittest from pyramid.testing import cleanUp +import os.path + class TestPackageURLParser(unittest.TestCase): def _getTargetClass(self): from pyramid.static import PackageURLParser @@ -27,15 +29,15 @@ class TestPackageURLParser(unittest.TestCase): inst = self._makeOne('package', 'resource/name', root_resource='root', cache_max_age=100) self.assertEqual(inst.package_name, 'package') - self.assertEqual(inst.resource_name, 'resource/name') + self.assertEqual(inst.resource_name, os.path.join('resource', 'name')) self.assertEqual(inst.root_resource, 'root') self.assertEqual(inst.cache_max_age, 100) def test_ctor_defaultargs(self): inst = self._makeOne('package', 'resource/name') self.assertEqual(inst.package_name, 'package') - self.assertEqual(inst.resource_name, 'resource/name') - self.assertEqual(inst.root_resource, 'resource/name') + self.assertEqual(inst.resource_name, os.path.join('resource', 'name')) + self.assertEqual(inst.root_resource, os.path.join('resource', 'name')) self.assertEqual(inst.cache_max_age, None) def test_call_adds_slash_path_info_empty(self): @@ -138,7 +140,8 @@ class TestPackageURLParser(unittest.TestCase): inst = self._makeOne('pyramid.tests', 'fixtures/static') self.failUnless( repr(inst).startswith( - '