~unity-2d-team/unity-2d/Shell-MultiMonitor

« back to all changes in this revision

Viewing changes to grackle/tests/test_client.py

  • Committer: Curtis Hovey
  • Date: 2012-01-30 21:30:02 UTC
  • mto: (6.1.31 trunk)
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: curtis.hovey@canonical.com-20120130213002-ldo7j2z2wh9ujsww
Moved the handling of unsupported display_type to server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
                self.send_response(httplib.OK)
227
227
                self.end_headers()
228
228
                self.wfile.write(simplejson.dumps(response))
 
229
            except UnsupportedDisplayType:
 
230
                self.send_response(
 
231
                    httplib.BAD_REQUEST, 'Unsupported display_type')
 
232
                return
229
233
            except UnsupportedOrder:
230
 
                self.send_response(httplib.BAD_REQUEST)
231
 
                self.wfile.write('Unsupported order')
 
234
                self.send_response(
 
235
                    httplib.BAD_REQUEST, 'Unsupported order')
232
236
                return
233
237
 
234
238
    def log_message(self, format, *args):