~gary-lasker/software-center/recommendations-opt-out

« back to all changes in this revision

Viewing changes to test/test_reinstall_purchased.py

  • Committer: Gary Lasker
  • Date: 2012-03-18 22:14:47 UTC
  • mfrom: (2844.2.30 tweaks)
  • Revision ID: gary.lasker@canonical.com-20120318221447-7ihopj3074ginitu
trunkify

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
            self.assertEqual(doc.get_value(XapianValues.ARCHIVE_DEB_LINE),
146
146
                "deb https://username:random3atoken@"
147
147
                 "private-ppa.launchpad.net/commercial-ppa-uploaders"
148
 
                 "/photobomb/ubuntu natty main")
 
148
                 "/photobomb/ubuntu precise main")
149
149
 
150
150
 
151
151
class SCAApplicationParserTestCase(unittest.TestCase):
250
250
        parser = self._make_application_parser()
251
251
 
252
252
        expected_results = {
253
 
             "Deb-Line": "deb https://username:random3atoken@"
 
253
             "X-AppInstall-Deb-Line": "deb https://username:random3atoken@"
254
254
                         "private-ppa.launchpad.net/commercial-ppa-uploaders"
255
255
                         "/photobomb/ubuntu quintessential main",
256
 
             "Deb-Line-Orig": 
 
256
             "X-AppInstall-Deb-Line-Orig": 
257
257
                         "deb https://username:random3atoken@"
258
258
                         "private-ppa.launchpad.net/commercial-ppa-uploaders"
259
259
                         "/photobomb/ubuntu natty main",
260
 
             "Purchased-Date": "2011-09-16 06:37:52",
 
260
             "X-AppInstall-Purchased-Date": "2011-09-16 06:37:52",
261
261
            }
262
262
        for key in expected_results:
263
263
            result = parser.get_desktop(key)