summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@iki.fi>2008-01-06 02:16:17 +0200
committerLars Wirzenius <liw@iki.fi>2008-01-06 02:16:17 +0200
commit09974c359d3d78cd215ff3e5c7faa55ba574dcaf (patch)
tree52c791491e5f94aa4ba1be76ef23d5be9f5872a3
parentc516e99efde7142531b448fc4b939abedc258e65 (diff)
downloadgenbackupdata-09974c359d3d78cd215ff3e5c7faa55ba574dcaf.tar.gz
Remove --bad-binary-data option.
-rw-r--r--genbackupdata.py13
-rwxr-xr-xtests.py11
2 files changed, 0 insertions, 24 deletions
diff --git a/genbackupdata.py b/genbackupdata.py
index 934da96..ed41228 100644
--- a/genbackupdata.py
+++ b/genbackupdata.py
@@ -73,9 +73,6 @@ class BackupData:
self._next_filecount = 0
self._binary_blob = None
- def make_binary_data_generation_fast_but_bad(self):
- self.generate_binary_data = self.generate_binary_data_quickly
-
def set_directory(self, dirname):
"""Set the directory to be operated on
@@ -469,13 +466,6 @@ class CommandLineParser:
metavar="SIZE",
help="Make new binary files be of size SIZE")
- p.add_option("--bad-binary-data",
- action="store_true",
- default=False,
- help="When generating binary data, generate it "
- "quickly, but in a way that does not make it "
- "uncompressible.")
-
p.add_option("-c", "--create",
action="store",
metavar="SIZE",
@@ -546,9 +536,6 @@ class CommandLineParser:
"""Parse command line arguments"""
options, args = self._parser.parse_args(args)
- if options.bad_binary_data:
- self._bd.make_binary_data_generation_fast_but_bad()
-
if options.seed:
self._bd.set_seed(int(options.seed))
diff --git a/tests.py b/tests.py
index edc0dd6..8b618fb 100755
--- a/tests.py
+++ b/tests.py
@@ -66,11 +66,6 @@ class BackupDataTests(unittest.TestCase):
self.failUnlessEqual(self.bd.generate_binary_data,
self.bd.generate_binary_data_well)
- def testSetsOtherBinaryDataGeneratorWhenRequested(self):
- self.bd.make_binary_data_generation_fast_but_bad()
- self.failUnlessEqual(self.bd.generate_binary_data,
- self.bd.generate_binary_data_quickly)
-
def testSetsDirectoryCorrect(self):
self.failUnlessEqual(self.bd.get_directory(), self.dirname)
@@ -442,12 +437,6 @@ class CommandLineParserTests(unittest.TestCase):
self.failUnlessEqual(self.bd.get_binary_file_size(),
genbackupdata.TiB)
- def testSetsBinaryGeneratorWhenRequested(self):
- options, args = self.clp.parse(["--bad-binary-data"])
- self.failUnlessEqual(args, [])
- self.failUnlessEqual(self.bd.generate_binary_data,
- self.bd.generate_binary_data_quickly)
-
def testHandlesOptionForCreate(self):
options, args = self.clp.parse(["--create=1t"])
self.failUnlessEqual(args, [])