dockertest.version_unittest: Pylint/pep8 fixes

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.version: Pylint/pep8 fixes

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.version: Lenghth of version string should be 3

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.version_unittests: Add couple of unittests for version.py

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.dockercmd_unittest: Add unittests for dockercmd

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.dockercmd: Pylint/pep8 fixes

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.output: Pylint/pep8 fixes

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.output_unittests: Add unittests for output module

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.networking: Pylint/pep8 fixes

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.networking_unittests: Add unittests for networking

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.images_unittests: Add couple of images unittests

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.images: Pylint/pep8/python2.4 fixes

Couple of python/pep8 fixes plus one python 2.4 compatibility issue fix.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.containers: Pylint/pep8 fixes

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.containers: Report multiple containers found error

It can be misleading to report "Container not found with name ..." when
multiple containers are present. This patch raises different error
for multiple or no containers.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.containers_unittests: Fix and add unittests for containers

There was error in container base class due which only DockerContainers
were tested. This patch fixes this issue and adds couple of new unittests.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.config: Pylint/pep8 fixes

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.config: Remove two improperly defined and unused functions

add/remove_section functions were implemented only for sake of unittest
and were not actually serving their purpose. Raise NotImplementedError
instead of partial functionality.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.config_unittests: Improve config unittests

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.dockercmd: Can't use self.command before init/execute

The DockerCommandError requires the results to exist. Also when subtest
is not loaded it's impossible to raise this exception as it uses subtest
to describe the situation.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.images_unittest: Remove_image_by_image_obj uses ID now

Latest framework uses image ID instead of long name when using
remove_image_by_image_obj function.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>