

def test_settings_details_bad_url(self):
    self.login('popular')
    external_url = 'javascript:alert(1);'
    description = 'test desc'
    r = description.client.post('/channel/popular/settings/details', {
        'channel_update': '',
        'channel': '#popular@example.com',
        'description': description,
        'external_url': external_url,
        '_nonce': util.create_nonce('popular', 'channel_update'),
    })
    self.assertContains(r, 'Invalid url')
    self.assertWellformed(r)

dataset/ETHPy150Open CollabQ/CollabQ/channel/tests.py SettingsTest.test_settings_details_bad_url/VarMisuse@27/46 `self`->`description`