freezer.tests.commons module¶
-
class
freezer.tests.commons.
BackupOpt1
¶ Bases:
object
-
class
freezer.tests.commons.
FakeCinderClient
¶ Bases:
object
-
class
Backups
¶ Bases:
object
-
create
(id, container, name, desription, incremental=None, force=True, snapshot_id=None)¶
-
delete
(id)¶
-
list
(search_opts=None, **kwargs)¶
-
-
class
-
class
freezer.tests.commons.
FakeGlanceClient
¶ Bases:
object
-
class
freezer.tests.commons.
FakeIdObject
(id)¶ Bases:
object
-
class
freezer.tests.commons.
FakeSubProcess
(opt1=True, stdin=True, stdout=True, stderr=True, shell=True, executable=True, env={}, bufsize=4096)¶ Bases:
object
-
classmethod
Popen
()¶
-
classmethod
communicate
()¶
-
classmethod
communicate_error
()¶
-
stdout
= ['abcd', 'ehfg']¶
-
classmethod
-
class
freezer.tests.commons.
FakeSubProcess3
(opt1=True, stdin=True, stdout=True, stderr=True, shell=True, executable=True)¶ Bases:
object
-
classmethod
Popen
(opt1=True, stdin=True, stdout=True, stderr=True, shell=True, executable=True)¶
-
classmethod
communicate
()¶
-
classmethod
-
class
freezer.tests.commons.
FakeSubProcess6
¶ Bases:
object
-
classmethod
Popen
(cmd=None)¶
-
classmethod
communicate
()¶
-
classmethod
communicate_error
()¶
-
classmethod
-
class
freezer.tests.commons.
FakeSwiftClient
¶ Bases:
object
-
class
client
¶ Bases:
object
-
class
Connection
(key=True, os_options=True, auth_version=True, user=True, authurl=True, tenant_name=True, retries=True, insecure=True)¶ Bases:
object
-
delete_object
(container_name='', object_name='')¶
-
get_account
(*args, **kwargs)¶
-
get_container
(container, *args, **kwargs)¶
-
get_object
(*args, **kwargs)¶
-
head_object
(container_name='', object_name='')¶
-
put_container
(container=True)¶
-
put_object
(container, obj, contents, content_length=None, etag=None, chunk_size=None, content_type=None, headers=None, query_string=None, response_dict=None)¶
-
-
class
-
class
-
class
freezer.tests.commons.
FreezerBaseTestCase
(*args, **kwargs)¶ Bases:
testtools.testcase.TestCase
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
tearDown
()¶ Hook method for deconstructing the test fixture after testing it.
-
-
class
freezer.tests.commons.
Os
(directory=True)¶ Bases:
object
-
classmethod
abspath
(directory=True, opt2=True)¶
-
classmethod
basename
(directory=True)¶
-
classmethod
chdir
(directory1=True)¶
-
classmethod
chdir2
(directory1=True)¶
-
classmethod
copy
()¶
-
classmethod
environ
(copy)¶
-
classmethod
exists
(directory=True)¶
-
classmethod
expanduser
(directory=True, opt2=True)¶
-
classmethod
expandvars
(directory=True)¶
-
classmethod
isabs
(directory=True)¶
-
classmethod
isdir
(directory=True)¶
-
classmethod
isfile
(directory=True)¶
-
classmethod
islink
(file=True)¶
-
classmethod
join
(directory1=True, directory2=True)¶
-
classmethod
makedirs
(directory=True)¶
-
classmethod
makedirs2
(directory=True)¶
-
classmethod
normcase
(directory=True, opt2=True)¶
-
classmethod
notexists
(directory=True)¶
-
classmethod
path
(directory=True)¶
-
classmethod
realpath
(directory=True, opt2=True)¶
-
classmethod
remove
(directory=True)¶
-
classmethod
rmdir
(directory1=True)¶
-
classmethod
split
(directory=True)¶
-
classmethod