Fix bug: _baseUrl is now a method

This handles modification of attributes creating the base url
This commit is contained in:
Vincent Jacques
2012-03-12 22:28:06 +01:00
parent cc6d0fc044
commit fc33a6de4f
5 changed files with 36 additions and 35 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ class GithubObjectWithDocumentationCoveringSpecialCases( TestCaseWithGithubTestO
"GithubTestObject",
BaseUrl( lambda obj: "/test" ),
InternalSimpleAttributes( "a1", "a2", "_a3" ),
MethodFromCallable( "myMethod", [ "mock", "arg" ], [], lambda obj: 42, ObjectTypePolicy( GithubObject ) )
MethodFromCallable( "myMethod", [ "mock", "arg" ], [], lambda obj: 42, ObjectTypePolicy( GithubObject ) ),
AttributeFromCallable( "myAttr", lambda obj: 42 )
)
def testNothing( self ):