summaryrefslogtreecommitdiffstats
path: root/newton/newton/requests/views/util.py
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-09-28 13:49:14 -0700
committerVictor Morales <victor.morales@intel.com>2017-09-28 13:52:24 -0700
commitd48ab8f98174169ebcf910b7db511357a748838b (patch)
tree8f1f720637e49679a0879daa3dfb891a625c4677 /newton/newton/requests/views/util.py
parent0aa903c0dc422a8660cfe64616a4d191318816e6 (diff)
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
Diffstat (limited to 'newton/newton/requests/views/util.py')
-rw-r--r--newton/newton/requests/views/util.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/newton/newton/requests/views/util.py b/newton/newton/requests/views/util.py
index a65ec3ee..59eed5ab 100644
--- a/newton/newton/requests/views/util.py
+++ b/newton/newton/requests/views/util.py
@@ -11,18 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-import logging
-import datetime
+import logging
from django.core.cache import cache
-
-from keystoneauth1 import _utils as utils
from keystoneauth1.identity import v2 as keystone_v2
from keystoneauth1.identity import v3 as keystone_v3
from keystoneauth1 import session
-#from newton.pub.msapi.extsys import get_vim_by_id
from newton.pub.msapi import extsys
logger = logging.getLogger(__name__)