Exemple #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')
Exemple #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')
Exemple #3
0
 def test_startIndex(self):
     q = Query(QueryTests.template)
     q.startIndex = 5
     self.assertEqual(q.url(), 'http://www.koders.com/?i=5&output=rss')
Exemple #4
0
 def test_startIndex(self):
     q = Query(QueryTests.template)
     q.startIndex = 5
     self.assertEqual(q.url(), 'http://www.koders.com/?output=rss&i=5')