~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Aaron Bentley
  • Date: 2013-08-08 19:46:31 UTC
  • mfrom: (338.2.2 separate-text-queries)
  • Revision ID: tarmac-20130808194631-pwx2gpgqt6a29n8y
[r=bac][bug=][author=abentley] Separate bundle text fields from charm text fields in search.

Show diffs side-by-side

added added

removed removed

Lines of Context:
672
672
 
673
673
    def test_no_path(self):
674
674
        with self.assertRaises(HTTPNotFound):
675
 
            response = self.get_response('bundle', remainder=None)
 
675
            self.get_response('bundle', remainder=None)
676
676
 
677
677
    def test_valid_lookup_unpromulgated(self):
678
678
        self.makeBundle(name='bat', owner='bac', basket='byobu-4')
841
841
        self.assertEqual(404, response.status_code)
842
842
        self.assertEqual({'type': 'no_such_charm', 'charm_id': 'foo'},
843
843
                         response.json_body)
 
844
 
844
845
    def test_no_path(self):
845
846
        with self.assertRaises(HTTPNotFound):
846
 
            response = self.get_response('charm', remainder=None)
 
847
            self.get_response('charm', remainder=None)
847
848
 
848
849
    @staticmethod
849
850
    def get_id(charm):