예제 #1
0
 def test_multiple(self):
     q = Query(QueryTests.template)
     q.searchTerms = 'zx81'
     q.startIndex = 15
     q.count = 15
     self.assertEqual(q.url(), 
         'http://www.koders.com/?i=15&s=zx81&c=15&output=rss')
예제 #2
0
 def test_multiple(self):
     q = Query(QueryTests.template)
     q.searchTerms = 'zx81'
     q.startIndex = 15
     q.count = 15
     self.assertEqual(q.url(),
                      'http://www.koders.com/?s=zx81&output=rss&c=15&i=15')
예제 #3
0
 def test_count(self):
     q = Query(QueryTests.template)
     q.count = 25
     self.assertEqual(q.url(), 'http://www.koders.com/?c=25&output=rss')
예제 #4
0
 def test_count(self):
     q = Query(QueryTests.template)
     q.count = 25
     self.assertEqual(q.url(), 'http://www.koders.com/?output=rss&c=25')