'Verify that the domain whitelist is rendered on the page.'

def _check_whitelist(self, response, expected_whitelist):

    rendered_whitelist = json.dumps({domain: '*' for domain in expected_whitelist})
    self.assertContains(response, 'xdomain.min.js')
    self.assertContains(response, rendered_whitelist)
