'Verify that the editing view only generates a single wrapper, no matter how many times it\'s loaded
Exposes: PLAT-417'

def test_editing_view_wrappers(self):

    view_url = reverse_usage_url('xblock_view_handler', self.problem_usage_key, {'view_name': STUDIO_VIEW})
    for __ in xrange(3):
        resp = self.client.get(view_url, HTTP_ACCEPT='application/json')
        self.assertEqual(resp.status_code, 200)
        content = json.loads(resp.content)
        self.assertEqual(len(PyQuery(content['html'])('.xblock-{}'.format(STUDIO_VIEW))), 1)
