~didrocks/ubuntu/raring/unity-lens-radios/raring

« back to all changes in this revision

Viewing changes to private_lib/tests/test_onlineradioinfo.py

  • Committer: Didier Roche
  • Date: 2012-06-25 18:49:43 UTC
  • Revision ID: didier.roche@canonical.com-20120625184943-6mawnm5qlr7ubifw
fix some format due to real data passed

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
 
131
131
        radio_list = list(stations_list_gen)
132
132
        # the urllib request is only done when the generator is done at least once, so check only now for call
133
 
        urllibmock.request.Request.assert_called_once_with(self.radioinfo.radio_base_url + "/index/searchembeddedbroadcast?q=radio&start=0&end=1000")
 
133
        urllibmock.request.Request.assert_called_once_with(self.radioinfo.radio_base_url + "/index/searchembeddedbroadcast?q=radio&start=0&rows=1000")
134
134
        self.assertIsInstance(radio_list[0], Radio)
135
135
        self.assertEquals(len(radio_list), 1000)
136
136
 
155
155
 
156
156
        list(stations_list_gen)
157
157
        # the urllib request is only done when the generator is done at least once, so check only now for call
158
 
        urllibmock.request.Request.assert_called_once_with(self.radioinfo.radio_base_url + "/index/searchembeddedbroadcast?q=radio&start=0&end=42")
 
158
        urllibmock.request.Request.assert_called_once_with(self.radioinfo.radio_base_url + "/index/searchembeddedbroadcast?q=radio&start=0&rows=42")
159
159
 
160
160
 
161
161
class OnlineRadioInfoLangTests(OnlineRadioInfoTestsCommon):