Tenants API Tenant Model - Tests Parity.

1. Refactored the tenant model and test as per tenant tests parity requirements.

Change-Id: I32d60759ab01bafb3e582e8f891f2a5030ec9b03
This commit is contained in:
Charles Kimpolo
2013-07-11 13:40:57 +02:00
parent e204c6e765
commit 8f96063105
2 changed files with 8 additions and 3 deletions

View File

@@ -66,8 +66,7 @@ class Tenant(BaseIdentityModel):
self.enabled = enabled
def _obj_to_json(self):
json_dict = {"tenant": {"id": self.id_,
"name": self.name,
json_dict = {"tenant": {"name": self.name,
"description": self.description,
"enabled": self.enabled}}
return json.dumps(json_dict)