<s> from casper . tests import CasperTestCase <EOL> import os . path <EOL> from django . contrib . auth . models import User <EOL> class CasperTestTestCase ( CasperTestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_that_casper_integration_works ( self ) : <EOL> self . assertTrue ( self . casper ( <EOL> os . path . join ( os . path . dirname ( __file__ ) , <EOL> '<STR_LIT>' ) ) ) <EOL> def test_that_casper_integration_works_when_test_fails ( self ) : <EOL> self . assertFalse ( self . casper ( <EOL> os . path . join ( os . path . dirname ( __file__ ) , <EOL> '<STR_LIT>' ) ) ) <EOL> def test_that_casper_can_reuse_session_cookie ( self ) : <EOL> u = User . objects . create_user ( username = '<STR_LIT:foo>' , password = '<STR_LIT:bar>' ) <EOL> self . client . login ( username = '<STR_LIT:foo>' , password = '<STR_LIT:bar>' ) <EOL> self . assertTrue ( self . casper ( <EOL> os . path . join ( os . path . dirname ( __file__ ) , <EOL> '<STR_LIT>' ) ) ) </s>
