summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2012-07-22 10:17:32 +0100
committerJonathan Lange <jml@canonical.com>2012-07-22 10:17:32 +0100
commita3ad030bb0b235249cc24eaa2886976a34eb6bef (patch)
treedca0e1bbc8c42305cc89d91316398c5e92b8c437
parent80a55c8a896fe331c691af42446cd05b77b00779 (diff)
downloadfixtures-a3ad030bb0b235249cc24eaa2886976a34eb6bef.tar.gz
Remove FileTree
-rw-r--r--lib/fixtures/__init__.py2
-rw-r--r--lib/fixtures/_fixtures/__init__.py2
-rw-r--r--lib/fixtures/_fixtures/filetree.py28
3 files changed, 0 insertions, 32 deletions
diff --git a/lib/fixtures/__init__.py b/lib/fixtures/__init__.py
index 005c439..c0b0d48 100644
--- a/lib/fixtures/__init__.py
+++ b/lib/fixtures/__init__.py
@@ -43,7 +43,6 @@ __all__ = [
'EnvironmentVariableFixture',
'FakeLogger',
'FakePopen',
- 'FileTree',
'Fixture',
'FunctionFixture',
'LoggerFixture',
@@ -72,7 +71,6 @@ from fixtures._fixtures import (
EnvironmentVariableFixture,
FakeLogger,
FakePopen,
- FileTree,
LoggerFixture,
MonkeyPatch,
NestedTempfile,
diff --git a/lib/fixtures/_fixtures/__init__.py b/lib/fixtures/_fixtures/__init__.py
index 260915c..ec88780 100644
--- a/lib/fixtures/_fixtures/__init__.py
+++ b/lib/fixtures/_fixtures/__init__.py
@@ -21,7 +21,6 @@ __all__ = [
'EnvironmentVariableFixture',
'FakeLogger',
'FakePopen',
- 'FileTree',
'LoggerFixture',
'MonkeyPatch',
'NestedTempfile',
@@ -40,7 +39,6 @@ from fixtures._fixtures.environ import (
EnvironmentVariable,
EnvironmentVariableFixture,
)
-from fixtures._fixtures.filetree import FileTree
from fixtures._fixtures.logger import (
FakeLogger,
LoggerFixture,
diff --git a/lib/fixtures/_fixtures/filetree.py b/lib/fixtures/_fixtures/filetree.py
index 1073464..b7cd116 100644
--- a/lib/fixtures/_fixtures/filetree.py
+++ b/lib/fixtures/_fixtures/filetree.py
@@ -13,10 +13,6 @@
# license you chose for the specific language governing permissions and
# limitations under that license.
-__all__ = [
- 'FileTree',
- ]
-
from fixtures import Fixture
from fixtures._fixtures.tempdir import (
create_normal_shape,
@@ -26,27 +22,3 @@ from fixtures._fixtures.tempdir import (
)
normalize_entry
-
-class FileTree(Fixture):
- """A structure of files and directories on disk."""
-
- def __init__(self, shape):
- """Create a ``FileTree``.
-
- :param shape: A list of descriptions of files and directories to make.
- Generally directories are described as ``"directory/"`` and
- files are described as ``("filename", contents)``. Filenames can
- also be specified without contents, in which case we'll make
- something up.
-
- Directories can also be specified as ``(directory, None)`` or
- ``(directory,)``.
- """
- super(FileTree, self).__init__()
- self.shape = shape
-
- def setUp(self):
- super(FileTree, self).setUp()
- tempdir = self.useFixture(TempDir())
- self.path = tempdir.path
- create_normal_shape(self.path, normalize_shape(self.shape))