send organisation back in correct variable

This commit is contained in:
Leo Hemsted
2016-08-15 11:00:20 +01:00
parent 3c0f06a36d
commit fde8d81868
3 changed files with 4 additions and 4 deletions

View File

@@ -782,9 +782,9 @@ def test_should_show_branding_and_organisations(
page.find('input', attrs={"id": "branding_type-2"})['checked']
assert page.find('label', attrs={"for": "organisation-1"}).text.strip() == 'None'
with pytest.raises(KeyError):
page.find('input', attrs={"id": "organisation-1"})['value']
assert page.find('input', attrs={"id": "organisation-1"})['value'] == 'None'
assert page.find('label', attrs={"for": "organisation-2"}).text.strip() == 'Organisation name'
assert page.find('input', attrs={"id": "organisation-2"})['value'] == 'organisation-name'
assert page.find('label', attrs={"for": "organisation-2"}).find('img')['src'] == (
'/static/images/email-template/crests/example.png'
)