~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/tests/test_search.py

  • Committer: Brad Crittenden
  • Date: 2013-08-02 18:10:49 UTC
  • mto: This revision was merged to the branch mainline in revision 333.
  • Revision ID: bac@canonical.com-20130802181049-82k0bli6aom942xo
Fix doctype cut-n-paste error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
342
342
        self.assertNotEqual(one['_id'], two['_id'])
343
343
 
344
344
    def test_api_search_bundles_only(self):
345
 
        """With no parameters, all charms are returned."""
 
345
        """Passing doctype of 'bundles' retrieves only bundles."""
346
346
        one, two, bundle = self.get_charm_bundle_test_data()
347
347
        result = self.get_charms_and_bundles(doctype=BUNDLE)
348
348
        result = sorted(result, key=lambda x: x['name'])