<s> from . fake_webapp import EXAMPLE_APP <EOL> class IsTextPresentTest ( object ) : <EOL> def test_is_text_present ( self ) : <EOL> "<STR_LIT>" <EOL> self . assertTrue ( self . browser . is_text_present ( '<STR_LIT>' ) ) <EOL> def test_is_text_present_and_should_return_false ( self ) : <EOL> "<STR_LIT>" <EOL> self . assertFalse ( self . browser . is_text_present ( '<STR_LIT>' ) ) <EOL> def test_is_text_present_and_should_wait_time ( self ) : <EOL> "<STR_LIT>" <EOL> self . browser . find_link_by_text ( '<STR_LIT>' ) . click ( ) <EOL> self . assertTrue ( self . browser . is_text_present ( '<STR_LIT>' , wait_time = <NUM_LIT:5> ) ) <EOL> def test_is_text_not_present ( self ) : <EOL> "<STR_LIT>" <EOL> self . assertTrue ( <EOL> self . browser . is_text_not_present ( '<STR_LIT>' ) ) <EOL> def test_is_text_not_present_and_should_return_false ( self ) : <EOL> "<STR_LIT>" <EOL> self . assertFalse ( self . browser . is_text_not_present ( '<STR_LIT>' ) ) <EOL> def test_is_text_not_present_and_should_wait_time ( self ) : <EOL> "<STR_LIT>" <EOL> self . browser . find_link_by_text ( '<STR_LIT>' ) . click ( ) <EOL> self . assertTrue ( <EOL> self . browser . is_text_not_present ( '<STR_LIT>' , wait_time = <NUM_LIT:5> ) <EOL> ) <EOL> def test_is_text_present_no_body ( self ) : <EOL> "<STR_LIT>" <EOL> self . browser . visit ( EXAMPLE_APP + "<STR_LIT>" ) <EOL> self . assertFalse ( self . browser . is_text_present ( '<STR_LIT>' ) ) <EOL> def test_is_text_not_present_no_body ( self ) : <EOL> "<STR_LIT>" <EOL> self . browser . visit ( EXAMPLE_APP + "<STR_LIT>" ) <EOL> self . assertTrue ( self . browser . is_text_not_present ( '<STR_LIT>' ) ) </s>
