summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoru <u@451f.org>2015-10-26 22:25:40 +0100
committerintrigeri <intrigeri@boum.org>2015-10-31 14:40:10 +0000
commit7bf61b0d3952f6dd238ba034a5b02e004f199e39 (patch)
treea05f065a80fa6dffda3ace1fcbd6969a1b2cdeea /tests
parent8af13288af7d9017cad2d9e23c52d1e3a1ac706f (diff)
Rename liveusb-creator to Tails Installerfeature/8552+rename-tails-installer
Renaming software, files, classes so that we would not steal LiveUSBCreator's namespace. See Tails #8552.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_creator.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_creator.py b/tests/test_creator.py
index 4be51e5..91b3493 100644
--- a/tests/test_creator.py
+++ b/tests/test_creator.py
@@ -1,6 +1,6 @@
import os
-class LiveUSBCreatorOptions(object):
+class TailsInstallerCreatorOptions(object):
console = True
force = False
safe = False
@@ -8,17 +8,17 @@ class LiveUSBCreatorOptions(object):
verbose = True
-class TestLiveUSBCreator:
+class TestTailsInstallerCreator:
def _get_creator(self):
- from liveusb import LiveUSBCreator
- opts = LiveUSBCreatorOptions()
- return LiveUSBCreator(opts)
+ from tails_installer import TailsInstallerCreator
+ opts = TailsInstallerCreatorOptions()
+ return TailsInstallerCreator(opts)
def test_creation(self):
- from liveusb import LiveUSBCreator
+ from tails_installer import TailsInstallerCreator
live = self._get_creator()
- assert live and isinstance(live, LiveUSBCreator)
+ assert live and isinstance(live, TailsInstallerCreator)
def test_device_detection(self):
live = self._get_creator()
@@ -29,7 +29,7 @@ class TestLiveUSBCreator:
assert key in live.drives[drive]
def test_releases(self):
- from liveusb.releases import releases
+ from tails_installer.releases import releases
assert releases and len(releases)
for release in releases:
assert release['name']
@@ -90,7 +90,7 @@ class TestLiveUSBCreator:
def test_extract_iso(self):
from glob import glob
- from liveusb.source import LocalIsoSource
+ from tails_installer.source import LocalIsoSource
live = self._get_creator()
live.detect_supported_drives()
isos = filter(lambda x: x.endswith('.iso'),