File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,9 @@ def test_comment(self):
185
185
self .response ('issue_comment' )
186
186
self .get (self .api [:- 1 ] + 'comments/476476' )
187
187
188
- expect (self .i .comment ('476476' )).isinstance (
189
- github3 .issues .IssueComment )
188
+ c = self .i .comment ('476476' )
189
+ expect (c ).isinstance (github3 .issues .IssueComment )
190
+ expect (repr (c ).startswith ('<Issue Comment' )).is_True ()
190
191
self .mock_assertions ()
191
192
192
193
def test_create_comment (self ):
@@ -241,8 +242,9 @@ def test_iter_events(self):
241
242
self .response ('issue_event' , _iter = True )
242
243
self .get (self .api + '/events' )
243
244
244
- expect (next (self .i .iter_events ())).isinstance (
245
- github3 .issues .IssueEvent )
245
+ e = next (self .i .iter_events ())
246
+ expect (e ).isinstance (github3 .issues .IssueEvent )
247
+ expect (repr (e ).startswith ('<Issue Event' )).is_True ()
246
248
self .mock_assertions ()
247
249
248
250
def test_remove_label (self ):
You can’t perform that action at this time.
0 commit comments