~fabricematrat/charmworld/redirect-charm

« back to all changes in this revision

Viewing changes to charmworld/views/tests/test_charms.py

  • Committer: Tarmac
  • Author(s): Rick Harding
  • Date: 2013-07-01 16:17:27 UTC
  • mfrom: (288.2.3 total-stats)
  • Revision ID: tarmac-20130701161727-0pecnptvuirkuevq
[r=sinzui][bug=1194152][author=rharding] Add support for a total downloads attribute.

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
        # Charms with errors are not returned by interface().
249
249
        providing = Charm(factory.makeCharm(
250
250
            self.db, provides={'foo': {'interface': 'httpX'}})[1])
251
 
        requiring = Charm(factory.makeCharm(
252
 
            self.db, requires={'bar': {'interface': 'httpX'}},
253
 
            charm_error=True)[1])
 
251
        Charm(factory.makeCharm(
 
252
              self.db, requires={'bar': {'interface': 'httpX'}},
 
253
              charm_error=True)[1])
254
254
        request = self.getRequest()
255
255
        request.matchdict = {'interface': 'httpX'}
256
256
        response = interface(request)