Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (15 sloc) 660 Bytes
#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at
import pytest
from unittestzero import Assert
import home_page
class TestViewSource:
def test_visitor_can_view_source(self, mozwebqa):
home_pg = home_page.HomePage(mozwebqa)
view_source_pg = home_pg.click_view_source()
Assert.greater(len(view_source_pg.source_textarea.strip()), 0)