summaryrefslogtreecommitdiffstats
path: root/src/python/lmi/test
Commit message (Collapse)AuthorAgeFilesLines
* logicalfile: test providers' configurationJan Synacek2014-05-121-0/+19
|
* Move generic code to lmi.test.utilAlois Mahdal2014-05-071-0/+214
|
* Avoid endless import loop in lmi.test.unittest.Jan Safranek2014-04-182-28/+8
| | | | lmi.test.unittest is now defined directly in lmi/test/__init__.py
* Use unittest2 on Python 2.6Jan Safranek2014-04-184-3/+31
|
* python2.6 software providerAles Ledvinka2014-04-111-1/+1
|
* tests: compare encoded values of keysMichal Minar2014-01-241-0/+8
| | | | | | 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 yearsPeter Schiffer2014-01-166-6/+6
| | | | Updated copyright years to include new year 2014.
* tests: ensure the use of exceptions is well definedMichal Minar2014-01-081-0/+7
| | | | | | | | | | | | | | | 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
* tests: Add missing import.Jan Safranek2014-01-081-0/+1
|
* Port indication test base to lmishellTomas Bzatek2014-01-031-0/+81
| | | | | Historically indication tests have been using pywbem machinery, which is now obsolete as lmishell gained proper indication support recently.
* Let the test write to stderr.Jan Safranek2013-12-191-3/+3
| | | | | Our test framework logs stderr and stdout separately and it's hard to match them together.
* Do not skip LMI_MountedFileSystem during tests.Jan Safranek2013-12-181-1/+0
| | | | It was skipped just for debugging purposes.
* Add test to call all EnumerateInstance{s,Names}, GetInstance, Associators ↵Jan Safranek2013-12-171-0/+174
| | | | | | | | | | | | | 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).
* software: minor test enhancementsMichal Minar2013-12-021-0/+2
| | | | | | | | | | | 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.
* tests: added Base test cases for cim and lmi shell testsMichal Minar2013-11-044-350/+696
| | | | | | | | | | | | | | 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.
* tests: added base class for our test casesMichal Minar2013-10-242-0/+467
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.