<s> from . base import * <EOL> from selenium . common . exceptions import NoSuchElementException <EOL> HOMEPAGE = '<STR_LIT>' <EOL> class HomepageTests ( SeleniumTestCase ) : <EOL> def test_home_title ( self ) : <EOL> self . browser . get ( HOMEPAGE ) <EOL> self . assertIn ( "<STR_LIT>" , self . browser . title ) <EOL> def test_home_files ( self ) : <EOL> self . browser . get ( HOMEPAGE + "<STR_LIT>" ) <EOL> self . assertNotIn ( "<STR_LIT>" , self . browser . title ) <EOL> def test_home_heading ( self ) : <EOL> browser = self . browser <EOL> browser . get ( HOMEPAGE ) <EOL> heading = browser . find_element_by_class_name ( '<STR_LIT>' ) <EOL> heading_text = heading . text <EOL> assert '<STR_LIT>' in heading_text <EOL> def test_features ( self ) : <EOL> browser = self . browser <EOL> browser . get ( HOMEPAGE ) <EOL> try : <EOL> browser . find_element_by_class_name ( '<STR_LIT>' ) <EOL> except NoSuchElementException : <EOL> return False <EOL> return True </s>
