added copy tests for Headers which need to pass but are currently failing

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%401014
This commit is contained in:
Pablo Hoffman 2009-03-24 21:21:39 +00:00
parent d8c0440700
commit 7c4c17088a
1 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import unittest
import copy
from scrapy.http import Headers
@ -73,4 +74,10 @@ class HeadersTest(unittest.TestCase):
self.assertEqual(h.getlist('Content-Type'), ['text/html'])
self.assertEqual(h.getlist('X-Forwarded-For'), ['ip1', 'ip2'])
#def test_copy(self):
# h1 = Headers({'header1': ['value1', 'value2']})
# h2 = copy.copy(h1)
# self.assertEqual(h1, h2)
# self.assertEqual(h1.getlist('header1'), h2.getlist('header1'))
# assert h1.getlist('header1') is not h2.getlist('header1')