From dbbb2f7848083f5d9147ac12217f6ccf50e3b786 Mon Sep 17 00:00:00 2001 From: Imdad Ahad Date: Mon, 14 Nov 2016 14:50:36 +0000 Subject: [PATCH] Fix comment --- tests/app/main/views/test_platform_admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/main/views/test_platform_admin.py b/tests/app/main/views/test_platform_admin.py index e5d374394..74ba43a35 100644 --- a/tests/app/main/views/test_platform_admin.py +++ b/tests/app/main/views/test_platform_admin.py @@ -60,7 +60,7 @@ def test_should_show_research_and_restricted_mode( assert response.status_code == 200 mock_get_detailed_services.assert_called_once_with({'detailed': True}) page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser') - # get second column, which contains flags as text. + # get first column in second row, which contains flags as text. table_body = page.find_all('table')[table_index].find_all('tbody')[0] service_mode = table_body.find_all('tbody')[0].find_all('tr')[1].find_all('td')[0].text.strip() assert service_mode == displayed