From: Alfredo Deza Date: Wed, 11 Feb 2015 16:25:45 +0000 (-0500) Subject: rename test to tests, follows best practices for tests dirs X-Git-Tag: v0.94.10~27^2^2~144 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d25aa7bdc19290fabaabae7ef074105c312a8aed;p=ceph.git rename test to tests, follows best practices for tests dirs Signed-off-by: Alfredo Deza (cherry picked from commit 7b2062602f7d3de206f4660c3e2847f86ac41e24) --- diff --git a/tasks/test/__init__.py b/tasks/test/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/tasks/test/test_devstack.py b/tasks/test/test_devstack.py deleted file mode 100644 index 117b3076818..00000000000 --- a/tasks/test/test_devstack.py +++ /dev/null @@ -1,48 +0,0 @@ -from textwrap import dedent - -from .. import devstack - - -class TestDevstack(object): - def test_parse_os_table(self): - table_str = dedent(""" - +---------------------+--------------------------------------+ - | Property | Value | - +---------------------+--------------------------------------+ - | attachments | [] | - | availability_zone | nova | - | bootable | false | - | created_at | 2014-02-21T17:14:47.548361 | - | display_description | None | - | display_name | NAME | - | id | ffdbd1bb-60dc-4d95-acfe-88774c09ad3e | - | metadata | {} | - | size | 1 | - | snapshot_id | None | - | source_volid | None | - | status | creating | - | volume_type | None | - +---------------------+--------------------------------------+ - """).strip() - expected = { - 'Property': 'Value', - 'attachments': '[]', - 'availability_zone': 'nova', - 'bootable': 'false', - 'created_at': '2014-02-21T17:14:47.548361', - 'display_description': 'None', - 'display_name': 'NAME', - 'id': 'ffdbd1bb-60dc-4d95-acfe-88774c09ad3e', - 'metadata': '{}', - 'size': '1', - 'snapshot_id': 'None', - 'source_volid': 'None', - 'status': 'creating', - 'volume_type': 'None'} - - vol_info = devstack.parse_os_table(table_str) - assert vol_info == expected - - - - diff --git a/tasks/test/test_radosgw_admin.py b/tasks/test/test_radosgw_admin.py deleted file mode 100644 index 59f357891ca..00000000000 --- a/tasks/test/test_radosgw_admin.py +++ /dev/null @@ -1,31 +0,0 @@ -from mock import Mock - -from .. import radosgw_admin - -acl_with_version = """fooFoofooFooFULL_CONTROL -""" # noqa - - -acl_without_version = """fooFoofooFooFULL_CONTROL -""" # noqa - - -class TestGetAcl(object): - - def setup(self): - self.key = Mock() - - def test_removes_xml_version(self): - self.key.get_xml_acl = Mock(return_value=acl_with_version) - result = radosgw_admin.get_acl(self.key) - assert result.startswith('fooFoofooFooFULL_CONTROL +""" # noqa + + +acl_without_version = """fooFoofooFooFULL_CONTROL +""" # noqa + + +class TestGetAcl(object): + + def setup(self): + self.key = Mock() + + def test_removes_xml_version(self): + self.key.get_xml_acl = Mock(return_value=acl_with_version) + result = radosgw_admin.get_acl(self.key) + assert result.startswith('