<s> from bitbucket . tests . private . private import AuthenticatedBitbucketTest <EOL> class IssueCommentAuthenticatedMethodsTest ( AuthenticatedBitbucketTest ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> """<STR_LIT>""" <EOL> super ( IssueCommentAuthenticatedMethodsTest , self ) . setUp ( ) <EOL> success , result = self . bb . issue . create ( <EOL> title = u'<STR_LIT>' , <EOL> content = u'<STR_LIT>' , <EOL> responsible = self . bb . username , <EOL> status = u'<STR_LIT>' , <EOL> kind = u'<STR_LIT>' , ) <EOL> assert success <EOL> self . bb . issue . comment . issue_id = result [ u'<STR_LIT>' ] <EOL> def tearDown ( self ) : <EOL> """<STR_LIT>""" <EOL> self . bb . issue . delete ( issue_id = self . bb . issue . comment . issue_id ) <EOL> super ( IssueCommentAuthenticatedMethodsTest , self ) . tearDown ( ) <EOL> def test_all ( self ) : <EOL> """<STR_LIT>""" <EOL> success , result = self . bb . issue . comment . all ( ) <EOL> self . assertTrue ( success ) <EOL> self . assertIsInstance ( result , list ) <EOL> def _create_issue_comment ( self ) : <EOL> content = u'<STR_LIT>' <EOL> success , result = self . bb . issue . comment . create ( <EOL> content = content ) <EOL> self . assertTrue ( success ) <EOL> self . assertIsInstance ( result , dict ) <EOL> self . assertEqual ( result [ u'<STR_LIT:content>' ] , content ) <EOL> self . comment_id = result [ u'<STR_LIT>' ] <EOL> def _get_issue_comment ( self ) : <EOL> success , result = self . bb . issue . comment . get ( comment_id = self . comment_id ) <EOL> self . assertTrue ( success ) <EOL> self . assertIsInstance ( result , dict ) <EOL> success , result = self . bb . issue . comment . get ( comment_id = <NUM_LIT> ) <EOL> self . assertFalse ( success ) <EOL> def _update_issue_comment ( self ) : <EOL> test_content = '<STR_LIT>' <EOL> success , result = self . bb . issue . comment . update ( <EOL> comment_id = self . comment_id , <EOL> content = test_content ) <EOL> self . assertTrue ( success ) <EOL> self . assertIsInstance ( result , dict ) <EOL> self . assertEqual ( test_content , result [ u'<STR_LIT:content>' ] ) <EOL> def _delete_issue_comment ( self ) : <EOL> success , result = self . bb . issue . comment . delete ( <EOL> comment_id = self . comment_id ) <EOL> self . assertTrue ( success ) <EOL> self . assertEqual ( result , '<STR_LIT>' ) <EOL> success , result = self . bb . issue . comment . get ( comment_id = self . comment_id ) <EOL> self . assertFalse ( success ) <EOL> def test_CRUD ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _create_issue_comment ( ) <EOL> self . _get_issue_comment ( ) <EOL> self . _update_issue_comment ( ) <EOL> self . _delete_issue_comment ( ) </s>
