qal.dataset.tests package

Submodules

qal.dataset.tests.test_flatfile module

Created on Dec 17, 2013

@author: Nicklas Boerjesson

class qal.dataset.tests.test_flatfile.Test(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_1_Load_Save()[source]
qal.dataset.tests.test_flatfile.load_xml(_filename)[source]

qal.dataset.tests.test_rdbms module

Created on Dec 17, 2013

@author: Nicklas Boerjesson

class qal.dataset.tests.test_rdbms.Test(methodName='runTest')[source]

Bases: unittest.case.TestCase

qal.dataset.tests.test_rdbms.load_xml(_filename)[source]

qal.dataset.tests.test_spreadsheet module

Created on Dec 17, 2013

@author: Nicklas Boerjesson

class qal.dataset.tests.test_spreadsheet.Test(methodName='runTest')[source]

Bases: unittest.case.TestCase

Reads, writes, and reads again .xls and .xlsx-files while comparing with stored matrixes off data

test_1_Load_Save_xls(_has_header=None, _resource=None)[source]
test_2_Load_Save_xlsx(_has_header=None, _resource=None)[source]
qal.dataset.tests.test_spreadsheet.load_xml(_filename)[source]

qal.dataset.tests.test_xpath module

Created on Dec 17, 2013

@author: Nicklas Boerjesson @note: The tests work against copies of xml_dest_in.xml

class qal.dataset.tests.test_xpath.Test(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_1_apply_new_data()[source]

This tests checks so that(by the id-attribute): 1. bk103 and bk105:s titles and bk112: price but not description is corrected (_update=True) 2. that bk103:s “test_tag” is unaffected by the update 2. that bk110 is added 3. bk103.3 is removed by _delete=True 4. And that the visual layout of the destination file is kept. 5. That bk113 is added.

qal.dataset.tests.test_xpath.load_xml(_filename)[source]

Module contents