def test_ajax_with_slow_jquery(self):
        with self.assertRaises(BrokenPromise) as exc:
            self.ajax.wait_for_ajax(timeout=1)

        self.assertEqual(
            'Promise not satisfied: Finished waiting for ajax requests.',
            exc.exception.__str__())
demote image view should return json with status and uuid.
dataset/ETHPy150Open edx/bok-choy/tests/test_ajax.py/AjaxNoJQueryTest.test_ajax_with_slow_jquery--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/media/tests/test_views.py/ImageViewsTest.test_demote_image_view