~hudson-openstack/burrow/trunk

« back to all changes in this revision

Viewing changes to burrow/backend/__init__.py

  • Committer: Tarmac
  • Author(s): Eric Day
  • Date: 2011-08-10 05:48:15 UTC
  • mfrom: (16.3.23 backend-unittests)
  • Revision ID: tarmac-20110810054815-xzg9slms24xpdnrp
Added HTTP backend unit tests that work against a running server (auto started/killed with test).

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        if detail == 'none':
113
113
            detail = None
114
114
        elif detail is not None and detail not in ['id', 'all']:
115
 
            raise burrow.backend.BadDetail(detail)
 
115
            raise burrow.backend.InvalidArguments(detail)
116
116
        return detail
117
117
 
118
118
    def _get_message_detail(self, filters, default=None):
121
121
        if detail == 'none':
122
122
            detail = None
123
123
        elif detail is not None and detail not in options:
124
 
            raise burrow.backend.BadDetail(detail)
 
124
            raise burrow.backend.InvalidArguments(detail)
125
125
        return detail
126
126
 
127
127
 
129
129
    pass
130
130
 
131
131
 
132
 
class BadDetail(Exception):
 
132
class InvalidArguments(Exception):
133
133
    pass