@@ -0,0 +1,2073 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more%0A# contributor license agreements.  See the NOTICE file distributed with%0A# this work for additional information regarding copyright ownership.%0A# The ASF licenses this file to You under the Apache License, Version 2.0%0A# (the %22License%22); you may not use this file except in compliance with%0A# the License.  You may obtain a copy of the License at%0A#%0A#     http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS,%0A# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A# See the License for the specific language governing permissions and%0A# limitations under the License.%0A%0A%0Aimport sys%0Aimport unittest%0A%0Afrom libcloud.common.types import LibcloudError%0Afrom libcloud.storage.drivers.scaleway import ScalewayStorageDriver%0Afrom libcloud.storage.drivers.scaleway import ScalewayConnectionAWS4%0A%0Afrom libcloud.test.secrets import STORAGE_S3_PARAMS%0A%0A%0Aclass ScalewayStorageDriverTestCase(unittest.TestCase):%0A    driver_type = ScalewayStorageDriver%0A    driver_args = STORAGE_S3_PARAMS%0A    default_host = %22libcloud-storage-test.s3.fr-par.scw.cloud%22%0A%0A    @classmethod%0A    def create_driver(self):%0A        return self.driver_type(*self.driver_args, host=self.default_host)%0A%0A    def setUp(self):%0A        self.driver = self.create_driver()%0A%0A    def test_connection_class_type(self):%0A        self.assertEqual(self.driver.connectionCls, ScalewayConnectionAWS4)%0A%0A    def test_connection_class_default_host(self):%0A        self.assertEqual(self.driver.connectionCls.host, self.default_host)%0A        self.assertEqual(self.driver.connectionCls.port, 443)%0A        self.assertEqual(self.driver.connectionCls.secure, True)%0A%0A    def test_empty_host_error(self):%0A        self.assertRaisesRegex(%0A            LibcloudError,%0A            %22host argument is required%22,%0A            self.driver_type,%0A            *self.driver_args,%0A        )%0A%0Aif __name__ == %22__main__%22:%0A    sys.exit(unittest.main())%0A

Add simple test for scalewa storage driver