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_count(self):
     q = Query(QueryTests.template)
     q.count = 25
     self.assertEqual(q.url(), 'http://www.koders.com/?c=25&output=rss')
Exemple #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')