<s> from robotide . lib . robot import model , utils <EOL> from keyword import Keyword <EOL> class TestCase ( model . TestCase ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = [ '<STR_LIT:status>' , '<STR_LIT:message>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> keyword_class = Keyword <EOL> def __init__ ( self , name = '<STR_LIT>' , doc = '<STR_LIT>' , tags = None , timeout = None , status = '<STR_LIT>' , <EOL> message = '<STR_LIT>' , starttime = None , endtime = None ) : <EOL> model . TestCase . __init__ ( self , name , doc , tags , timeout ) <EOL> self . status = status <EOL> self . message = message <EOL> self . starttime = starttime <EOL> self . endtime = endtime <EOL> @ property <EOL> def elapsedtime ( self ) : <EOL> """<STR_LIT>""" <EOL> return utils . get_elapsed_time ( self . starttime , self . endtime ) <EOL> @ property <EOL> def passed ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . status == '<STR_LIT>' <EOL> @ property <EOL> def critical ( self ) : <EOL> """<STR_LIT>""" <EOL> if not self . parent : <EOL> return True <EOL> return self . parent . criticality . test_is_critical ( self ) </s>
