~michael.nelson/software-center/833982-previous-purchase-no-feedback-2

« back to all changes in this revision

Viewing changes to test/test_reinstall_purchased.py

  • Committer: Michael Nelson
  • Date: 2012-01-17 10:44:08 UTC
  • Revision ID: michael.nelson@canonical.com-20120117104408-dfvuzevrvgu5qbiv
REFACTOR: renamed SCAPurchasedApplicationParser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
from softwarecenter.db.database import StoreDatabase
16
16
from softwarecenter.db.update import (
17
17
    add_from_purchased_but_needs_reinstall_data,
18
 
    SCASubscriptionParser,
 
18
    SCAPurchasedApplicationParser,
19
19
    SoftwareCenterAgentParser,
20
20
    )
21
21
 
113
113
    pass
114
114
 
115
115
 
116
 
class SCASubscriptionParserTestCase(unittest.TestCase):
 
116
class SCAPurchasedApplicationParserTestCase(unittest.TestCase):
117
117
 
118
118
    def _make_subscription_parser(self, piston_subscription=None):
119
119
        if piston_subscription is None:
120
120
            piston_subscription = PistonResponseObject.from_dict(
121
121
                json.loads(AVAILABLE_FOR_ME_JSON)[0])
122
122
 
123
 
        return SCASubscriptionParser(piston_subscription)
 
123
        return SCAPurchasedApplicationParser(piston_subscription)
124
124
 
125
125
    def test_get_desktop_subscription(self):
126
126
        parser = self._make_subscription_parser()
156
156
                self.assertEqual(expected_results[key], result)
157
157
 
158
158
    def test_has_option_desktop_includes_app_keys(self):
159
 
        # The SCASubscriptionParser handles application keys also
 
159
        # The SCAPurchasedApplicationParser handles application keys also
160
160
        # (passing them through to the composited application parser).
161
161
        parser = self._make_subscription_parser()
162
162