Fix testEditOrganizationTeamAndMembers (Use _identity to fix has_in_, add_to_, remove_from_)

This commit is contained in:
Vincent Jacques
2012-05-04 15:45:08 +02:00
parent 5ae4dd1233
commit 7c749bf445
11 changed files with 144 additions and 87 deletions
+7
View File
@@ -33,6 +33,13 @@ class {{ class.name }}( object ):
{% endif %}
{% endfor %}
{% if class.identity %}
# @todo Remove '_identity' from the normalized json description
@property
def _identity( self ):
return {% include "GithubObject.Concatenation.py" with concatenation=class.identity only %}
{% endif %}
def __initAttributes( self ):
{% for attribute in class.attributes|dictsort:"name" %}
self.__{{ attribute.name }} = None