Permalink
Browse files

Anticipate doc and tests for pull request #74

  • Loading branch information...
1 parent cabc55d commit 697920fe59013fa7ca78bc188414130c8b80c918 @jacquev6 jacquev6 committed Sep 11, 2012
Showing with 12 additions and 2 deletions.
  1. +2 −2 doc/ReferenceOfClasses.md
  2. +10 −0 test/Issue.py
@@ -714,9 +714,9 @@ Modification
* `edit( [title, body, assignee, state, milestone, labels] )`
* `title`: string
* `body`: string
- * `assignee`: `NamedUser`
+ * `assignee`: `NamedUser` or None
* `state`: string
- * `milestone`: `Milestone`
+ * `milestone`: `Milestone` or None
* `labels`: list of string
Class `IssueComment`
View
@@ -55,6 +55,16 @@ def testEditWithAllParameters( self ):
self.assertEqual( self.issue.title, "Title edited by PyGithub" )
self.assertListKeyEqual( self.issue.labels, lambda l: l.name, [ "Bug" ] )
+ def testEditResetMilestone( self ):
+ self.assertEqual( self.issue.milestone.title, "Version 0.4" )
+ self.issue.edit( milestone = None )
+ self.assertEqual( self.issue.milestone, None )
+
+ def testEditResetAssignee( self ):
+ self.assertEqual( self.issue.assignee.login, "jacquev6" )
+ self.issue.edit( assignee = None )
+ self.assertEqual( self.issue.assignee, None )
+
def testCreateComment( self ):
comment = self.issue.create_comment( "Comment created by PyGithub" )
self.assertEqual( comment.id, 5808311 )

0 comments on commit 697920f

Please sign in to comment.