selector.__repr__ test, rename method

This commit is contained in:
Nikolaos-Digenis Karagiannis 2014-07-03 13:04:37 +03:00
parent d2d014a4e9
commit 9ac639abd3
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class SelectorTestCase(unittest.TestCase):
self.assertEqual([x.extract() for x in sel.xpath("concat(//input[@name='a']/@value, //input[@name='b']/@value)")],
[u'12'])
def test_representation(self):
def test_representation_slice(self):
body = u"<p><input name='{}' value='\xa9'/></p>".format(50 * 'b')
response = TextResponse(url="http://example.com", body=body, encoding='utf8')
sel = self.sscls(response)