summaryrefslogtreecommitdiffstats
path: root/tests/mock
Commit message (Collapse)AuthorAgeFilesLines
* Copy /etc/multipath/wwids to the sysimage.Ales Kozumplik2011-08-162-1/+2
| | | | | | | | | | | | /etc/multipath/wwids is a list of activated multipaths generated by the multipath tools. If it is missing in the sysimage it will be missing in the dracut initramfs and that, in rare cases, can cause race between mpath and lvm during boot. This is a merge froh rhel6-branch but includes a unit tests of the new iutil.copy_to_sysimage(). Resolves: rhbz#701371
* We also need to catch ValueError on mock.disk.TestFile.__del__.Chris Lumens2011-08-011-1/+1
|
* ut: cleanup the taking-over-io mechanism.Ales Kozumplik2011-07-272-32/+26
| | | | | | 1) Move the functionality from mock.DiskIO to mock.TestCase itself. 2) Use already existing mechanism (tearDownModules()) for cleaning up after we override functions in widely used modules.
* edd: do not traceback when can not find the respective pci device.Ales Kozumplik2011-07-261-0/+9
| | | | Resolves: rhbz#723344
* unit tests: provide 'glob.glob' and 'os.listdir' in the DiskIO class.Ales Kozumplik2011-07-041-9/+39
| | | | | | | | | Not a production code change. Just like the existing DiskIO, it is sufficient for the basic cases but breaks for more advanced ones. Related: rhbz#621175
* Remove trailing whitespace in file tests/mock/mock.py.Ales Kozumplik2011-05-231-31/+31
|
* Fix open method in mock/disk.py.Tomas Mlcoch2011-02-141-6/+11
| | | | Now is possible open empty file with mode 'a'
* Improve of mock/disk.py.Tomas Mlcoch2011-02-141-1/+16
| | | | | | | | Add __enter__() and __exit__() methods into TestFile class. Rename "IO" to "TestFile". Add destructor to TestFile and fix open mode "w". Add destructor to TestFile and fix open for write. Catch useless exception.
* Tag tests as slow or acceptance tests and split full testing from devel unit ↵Martin Sivak2011-02-141-0/+10
| | | | testing
* tearDown -> tearDownModules.Chris Lumens2010-06-211-1/+1
|
* Improve module cleanup in our TestCase class and fix issues in FS mock class.Martin Sivak2010-05-311-2/+6
|
* Structure the repo layout so it matches final structure better and make isys ↵Martin Sivak2010-05-312-6/+25
| | | | | | a real Python package. Also updates the build and autotools stuff to work with the new structure
* Improve module cleanup in our TestCase class and fix issues in FS mock class.Martin Sivak2010-05-202-5/+27
|
* Add Mock classesMartin Sivak2010-05-143-0/+405