| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
lmi.test.unittest is now defined directly in lmi/test/__init__.py
|
| |
|
| |
|
|
|
|
|
|
| |
When comparing instance names, treat unicode and str objects the same.
Byte strings are supposed to use utf-8 encoding. Therefor unicode
strings need to be encoded before comparison.
|
|
|
|
| |
Updated copyright years to include new year 2014.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some tests expect that exceptions won't be thrown out of LMIShell's
functions. Others prefers them and enable them globally. This causes
problems when running under nosetests all provider tests at once.
Tests that modified enablement of exception throws globally caused
others to fail.
This patch makes sure that each TestCase has defined use of exceptions.
Default state is to have them disabled. If a TestCase prefers having
them enabled, just one variable needs to be overriden in its body:
class AccountBase(lmibase.LmiTestCase):
USE_EXCEPTIONS = True
|
| |
|
|
|
|
|
| |
Historically indication tests have been using pywbem machinery, which
is now obsolete as lmishell gained proper indication support recently.
|
|
|
|
|
| |
Our test framework logs stderr and stdout separately and it's hard to match
them together.
|
|
|
|
| |
It was skipped just for debugging purposes.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and References.
This simple test calls EnumerateInstances and EnumerateInstanceNames on all
LMI_* classes and then calls GetInstance, AssociatorNames, Associators,
ReferenceNames and References on all instances.
It does not check actual content of returned names and instances, it just
checks that the above calls do not crash and are consistent (e.g.
EnumerateInstanceNames returns the same set as EnumerateInstances).
|
|
|
|
|
|
|
|
|
|
|
| |
Added one test to SoftwareIdentityFileCheck.Invoke() method testing
correct error code.
Renamed testing package pkg1 to pkg2 in misc repository to match its
comment.
Rendering function CIMInstanceNames should behave nicely for
objects of another type and return their text representation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Base test case class is renamed to BaseLmiTest. But it's not intended
for direct use in provider tests. For this purpose two more classes are
added. Namely LmiTestCase and CIMTestCase.
Tests wanting to take advantage of lmi shell's power should subclass
LmiTestCase. Those based on pure pywbem code shall subclass the other
one.
Added lots of convenience methods. Allowed to use lmi.shell abstractions
if available.
Useful utilities are moved to standalone util module.
|
|
import it in your tests with:
from lmi.test.base import LmiTestCase
For imports to work, run:
export PYTHONPATH=${PROVIDERS_GIT_ROOT}/src/python
before nosetests or before running them individually.
|