Changed typo. Added pythoh-dateutil to tox.
authormitch <mitch.raful@itaas.dimensiondata.com>
Wed, 5 Dec 2018 03:40:35 +0000 (22:40 -0500)
committermitch <mitch.raful@itaas.dimensiondata.com>
Wed, 5 Dec 2018 03:40:35 +0000 (22:40 -0500)
libcloud/common/nttcis.py
libcloud/test/compute/test_nttcis.py
tox.ini

index 3232abf..9b648ac 100644 (file)
@@ -17,7 +17,7 @@ NTTCIS Common Components
 """
 import xml.etree.ElementTree as etree
 import re
-from functools import wraps, total_ordering
+from functools import wraps
 from copy import deepcopy
 from base64 import b64encode
 from time import sleep
@@ -2095,7 +2095,6 @@ def processor(mapping, name=None):
     return process(mapping)
 
 
-@total_ordering
 def class_factory(cls_name, attrs):
     """
     This class takes a name and a dictionary to create a class.
index b88b4e1..dac4226 100644 (file)
@@ -1,7 +1,5 @@
 import pytest
 from dateutil.parser import parse
-
-import sys
 from types import GeneratorType
 from libcloud.utils.py3 import httplib
 from libcloud.utils.py3 import ET
@@ -11,10 +9,6 @@ from libcloud.common.nttcis import NttCisServerCpuSpecification, NttCisServerDis
 from libcloud.common.nttcis import NttCisTag, NttCisTagKey
 from libcloud.common.nttcis import NttCisServerCpuSpecification
 from libcloud.common.nttcis import NttCisServerDisk
-from libcloud.common.nttcis import NttCisIpAddress, \
-    NttCisIpAddressList, NttCisChildIpAddressList, \
-    NttCisPortList, NttCisPort, NttCisChildPortList
-from libcloud.common.nttcis import ClassFactory
 from libcloud.common.nttcis import TYPES_URN
 from libcloud.compute.drivers.nttcis import NttCisNodeDriver as NttCis
 from libcloud.compute.drivers.nttcis import NttCisNic
@@ -2261,7 +2255,7 @@ class NttCisMockHttp(MockHttp):
             'server_startServer_INPROGRESS.xml')
         return (httplib.BAD_REQUEST, body, {}, httplib.responses[httplib.OK])
 
-    def _caas_2_7_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_sna_compute_hutdownServer(self, method, url, body, headers):
+    def _caas_2_7_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_server_shutdownServer(self, method, url, body, headers):
         request = ET.fromstring(body)
         if request.tag != "{urn:didata.com:api:cloud:types}shutdownServer":
             raise InvalidRequestError(request.tag)
@@ -3374,4 +3368,3 @@ class NttCisMockHttp(MockHttp):
             "drs_delete_consistency_group.xml"
         )
         return httplib.OK, body, {}, httplib.responses[httplib.OK]
-
diff --git a/tox.ini b/tox.ini
index 293ccf9..7485e61 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -7,6 +7,7 @@ deps =
     -r{toxinidir}/requirements-tests.txt
     lockfile
     pyopenssl
+    python-dateutil
     libvirt-python==4.0.0
     py2.7: paramiko
 commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
@@ -105,6 +106,7 @@ commands = python -m integration
 deps =
     -r{toxinidir}/requirements-tests.txt
     pyopenssl
+    python-dateutil
     libvirt-python==4.0.0
     lockfile
 set-env =