Commits

Guido Serra committed db555d5

fixed the test, due to a "space"

Comments (0)

Files changed (1)

     @with_net
     def test_get(self):
         d = pq('http://www.theonion.com/search/', {'q': 'inconsistency'}, method='get')
-        self.assertEqual(d('input [name=q]:last').val(), 'inconsistency')
+        self.assertEqual(d('input[name=q]:last').val(), 'inconsistency')
         self.assertEqual(d('.news-in-brief h3').text(), 'Slight Inconsistency Found In Bible')
     
     @with_net
     def test_post(self):
         d = pq('http://www.theonion.com/search/', {'q': 'inconsistency'}, method='post')
-        self.assertEqual(d('input [name=q]:last').val(), '') # the onion does not search on post
+        self.assertEqual(d('input[name=q]:last').val(), '') # the onion does not search on post
 
 if __name__ == '__main__':
     fails, total = unittest.main()