tests: create a separate module for helper functions
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 26 Nov 2012 07:52:57 +0000 (09:52 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 26 Nov 2012 12:00:00 +0000 (14:00 +0200)
commit3942f8af8cf9e92c27cea9b8f57280482dd3bff2
tree830af17997c919781fef2a6e398f06fa8a622599
parent54a133daab03922ac51dab042f077d4a9f1d9abd
tests: create a separate module for helper functions

I am going to add a test for the Fiemap module, and it will need the
'create_random_sparse_file()' function from the base API test. Therefor, move
this function to a separate 'test_helpers.py' module which will be shared
across tests.

Additionally, remove the holes verification from 'create_random_sparse_file()'
- the test which I will add soon verifies holes separately.

Also change the egging to exclude the tests.

Change-Id: I2c81251c5e1884a4f644e89b417c8a18050aeada
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
setup.py
tests/__init__.py [new file with mode: 0644]
tests/test_api_base.py
tests/test_helpers.py [new file with mode: 0644]