'Tests that QueueConnectionError exception is handled in common_exception_400.'

@ddt.data(True, False)
def test_queue_connection_error(self, is_ajax):

    self.request.is_ajax.return_value = is_ajax
    resp = view_queue_connection_error(self.request)
    self.assertEqual(resp.status_code, 400)
    self.assertIn('Error    occured.    Please    try    again    later', resp.content)
