<s> from dccautomation import compat , configs , RemoteTestCase <EOL> class _TestcaseTests ( RemoteTestCase ) : <EOL> """<STR_LIT>""" <EOL> config = configs . CurrentPython <EOL> def success ( self ) : <EOL> self . assertTrue ( True ) <EOL> def error ( self ) : <EOL> raise NotImplementedError ( '<STR_LIT>' ) <EOL> def failure ( self ) : <EOL> self . assertFalse ( True , '<STR_LIT>' ) <EOL> class TestcaseTests ( compat . unittest . TestCase ) : <EOL> def runit ( self , name ) : <EOL> r = self . defaultTestResult ( ) <EOL> _TestcaseTests ( name ) . run ( r ) <EOL> return r <EOL> def test_success ( self ) : <EOL> r = self . runit ( '<STR_LIT:success>' ) <EOL> self . assertTrue ( r . wasSuccessful ( ) ) <EOL> def test_error ( self ) : <EOL> r = self . runit ( '<STR_LIT:error>' ) <EOL> self . assertEqual ( len ( r . errors ) , <NUM_LIT:1> ) <EOL> self . assertFalse ( r . failures ) <EOL> def test_failure ( self ) : <EOL> r = self . runit ( '<STR_LIT>' ) <EOL> self . assertEqual ( len ( r . failures ) , <NUM_LIT:1> ) <EOL> self . assertFalse ( r . errors ) </s>
