Use a real identity attribute instead of ugly hack

This commit is contained in:
Vincent Jacques
2012-02-13 21:02:44 +01:00
parent c0c2f50416
commit 2f67c50252
2 changed files with 21 additions and 9 deletions
+2 -1
View File
@@ -205,8 +205,9 @@ class GithubObjectWithExtendedListAttribute( TestCaseWithGithubTestObject ):
class GithubObjectWithModifiableExtendedListAttribute( TestCaseWithGithubTestObject ):
ContainedObject = GithubObject(
"ContainedObject",
SimpleScalarAttributes( "id", "name" ),
BaseUrl( lambda obj: "/test/a3s/" + obj.id ),
Identity( lambda obj: obj.id ),
SimpleScalarAttributes( "id", "name" ),
)
GithubTestObject = GithubObject(