Esempio n. 1
0
def test_get_absolute_url_in_minisite():
    alert = AlertFactory(querystring='text=test')
    alert_absolute_url = alert.get_absolute_url(in_minisite=True)
    assert not alert_absolute_url.startswith('/aides/')
Esempio n. 2
0
def test_get_absolute_url():
    alert = AlertFactory(querystring='text=test')
    alert_absolute_url = alert.get_absolute_url()
    assert alert_absolute_url.startswith('/aides/')