Changed character used in unit test because it's not a valid file name char on win32

This commit is contained in:
Pablo Hoffman 2009-12-12 11:07:50 -02:00
parent 3012030b2f
commit 9c31fc447a
1 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ class FileTestCase(unittest.TestCase):
def setUp(self):
self.tmpname = self.mktemp()
fd = open(self.tmpname + '<', 'w')
fd = open(self.tmpname + '^', 'w')
fd.write('0123456789')
fd.close()
@ -30,8 +30,8 @@ class FileTestCase(unittest.TestCase):
self.assertEquals(response.status, 200)
self.assertEquals(response.body, '0123456789')
request = Request('file://%s' % self.tmpname + '<')
assert request.url.upper().endswith('%3C')
request = Request('file://%s' % self.tmpname + '^')
assert request.url.upper().endswith('%5E')
return download_file(request, BaseSpider()).addCallback(_test)
def test_non_existent(self):