virttest.libvirt_storage_unittest: remove ModuleLoadCheckVirsh class.

Since we initialize a bogus_virsh in setup to provide a fake virsh for unittest,
then there is no need to skip if virsh command is not available.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #833 from yangdongsheng/libvirt_storage_unittest

virttest.libvirt_storage_unittest: remove ModuleLoadCheckVirsh class.
virt-libvirt: Error message enhancement

It's possible to install libvirt bits w/o installing kvm or xen.  This
will be reflected in 'virsh capabilities' output, but the VM class just
reports a key error.  Added two specific error logging messages to make
the problem clearer, but continue to raise the original exception.

Signed-off-by: Chris Evich <cevich@redhat.com>
tool-pep8: update the comment in run_pep8 module.

Options of run_pep8 tool is changed, then the description
should be updated at the same time.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Mass docstring fix

Make virt-test to have a docstring style mostly compliant with
the sphinx's [1] format, reStructured text. This means that
we have to trade all '@' tags to be ':', mostly.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tools/run_pep8: Add own logging config class

This way we can keep those scripts in sync among
virt-test and autotest.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Add CODING_STYLE document

This file is also borrowed from autotest, and already
reflects the updates to the coding style of the projects
under the autotest umbrella.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
More docstring fixes

Fix some extra problems with docstrings in the code tree.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.tests: Remove useless imported utils_test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Split utils_test module into special sub-modules.

With 2000+ lines in utils_test, expanding utils_test will
be not convenient. And to support different types' test(libvirt,
qemu, libguestfs...), now splitting it according its type.
virttest---utils_test---general(initted in __init__.py)
                      |-ut_qemu
                      |-ut_libvirt
                      \...

To use general functions of utils_test:
from virttest import utils_test
To use specific utils functions:
from virttest.utils_test import ut_qemu
from virttest.utils_test import ut_libvirt
...

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
qemu.tests: Necessary changes for new utils_test module.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>