Create UTs for Tenants APIView 13/16513/1
authorVictor Morales <victor.morales@intel.com>
Thu, 28 Sep 2017 20:49:14 +0000 (13:49 -0700)
committerVictor Morales <victor.morales@intel.com>
Thu, 28 Sep 2017 20:52:24 +0000 (13:52 -0700)
commitd48ab8f98174169ebcf910b7db511357a748838b
tree8f1f720637e49679a0879daa3dfb891a625c4677
parent0aa903c0dc422a8660cfe64616a4d191318816e6
Create UTs for Tenants APIView

The Tenants APIView class didn't have Unit Tests that validates
its functionality. This change creates UTs for two specific scenarios

* Retrieving tenants/projects information
* Retrieving tenants/projects information thru a querystring

Change-Id: Ibeaf8af991ae3c3d926867f04285449f41f050c9
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-Id: MULTICLOUD-83
newton/newton/requests/tests/test_tenant.py [new file with mode: 0644]
newton/newton/requests/views/tenants.py
newton/newton/requests/views/util.py