virttest/unittest_data: Fix mistake made on commit a5e55b7

In fact, we could not change the unittest data, which is
fixed to match the representation dump needed for that
unittest.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest: Replace itertools usage with backports version

This will ensure that, if some py 2.4 incompatible API
is used, it'll be appropriately patched up.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.libvirt_storage_unittest: Fix py 2.4 incompatible construct

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest/versionable_class_unittest: Fix reference to base_utils

That module no longer exists in autotest. The correct
import should be utils anyway.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.qemu_devices: Use backport implementation of OrderedDict

This will make the qemu devices unittest to pass on
python 2.4 systems.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.qemu_devices: Replace use of .super() in Exception definitions

Apparently Exception() is not a new style class in python 2.4.
Therefore, exception related classes have to use the
BaseClass.__init__(self, **kwargs) notation, otherwise we'd
have a TypeError when calling it.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest: Remove bad unittests

The utils_conn_unittest and utils_selinux_unittest were
relying on the actual commands to execute, being therefore
more of a functional test than a unittest.

Therefore, get rid of them.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1256 from autotest/more-unittest-fixes

More unittest fixes