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