Improve documentation generation

This commit is contained in:
Vincent Jacques
2012-02-26 12:44:06 +00:00
parent a437b6d47e
commit 0719ff429f
5 changed files with 22 additions and 18 deletions
+3 -4
View File
@@ -430,9 +430,6 @@ class GithubObjectWithMultiCapacityExternalListOfSimpleTypes( TestCaseWithGithub
self.expectStatusDelete( "/test/a3s", [ "a", "b", "c" ] ).andReturn( 204 )
a3s = self.o.remove_from_a3s( "a", "b", "c" )
def myCallable( obj, mock, arg ):
return mock.call( arg )
class GithubObjectWithExternalSimpleAttribute( TestCaseWithGithubTestObject ):
GithubTestObject = GithubObject(
"GithubTestObject",
@@ -445,12 +442,14 @@ class GithubObjectWithExternalSimpleAttribute( TestCaseWithGithubTestObject ):
self.expectDataGet( "/test/a3" ).andReturn( 72 )
self.assertEqual( self.o.get_a3(), 72 )
def myCallable( obj, mock, arg ):
return mock.call( arg )
class GithubObjectWithMethodFromCallable( TestCaseWithGithubTestObject ):
GithubTestObject = GithubObject(
"GithubTestObject",
BaseUrl( lambda obj: "/test" ),
InternalSimpleAttributes( "a1", "a2" ),
MethodFromCallable( "myMethod", myCallable )
MethodFromCallable( "myMethod", [ "mock", "arg" ], [], myCallable )
)
def testCallMethod( self ):