def test_xhr(self):
        # AjaxResponseView returns 'AJAX_OK' when requested with XmlHttpRequest
        for m in self.methods:
            fn = getattr(self.client, m)
            resp = fn('/ajax_response/', HTTP_X_REQUESTED_WITH='XMLHttpRequest')
            assert force_text(resp.content) == 'AJAX_OK'
Adds all pending import/export objects to the internal queue.
dataset/ETHPy150Open brack3t/django-braces/tests/test_ajax_mixins.py/TestAjaxResponseMixin.test_xhr--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/masterd/instance.py/ImportExportLoop._AddPendingToQueue