Fix testColaborators (add_element, remove_element, has_element)

This commit is contained in:
Vincent Jacques
2012-05-04 12:53:37 +02:00
parent f34f2a65c9
commit 07af042cf1
9 changed files with 752 additions and 49 deletions
+19 -3
View File
@@ -230,7 +230,12 @@ class Repository( object ):
self.__completed = True
def add_to_collaborators( self, collaborator ):
pass
result = self.__github._statusRequest(
"PUT",
self.url + "/collaborators/" + collaborator.login,
None,
None
)
def compare( self, base, head ):
pass
@@ -572,10 +577,21 @@ class Repository( object ):
]
def has_in_collaborators( self, collaborator ):
pass
result = self.__github._statusRequest(
"GET",
self.url + "/collaborators/" + collaborator.login,
None,
None
)
return result == 204
def remove_from_collaborators( self, collaborator ):
pass
result = self.__github._statusRequest(
"DELETE",
self.url + "/collaborators/" + collaborator.login,
None,
None
)
def __useAttributes( self, attributes ):
#@todo No need to check if attribute is in attributes when attribute is mandatory