ait.core.test.test_util module

class ait.core.test.test_util.Crc32FileTest(methodName='runTest')

Bases: unittest.case.TestCase

Unit test of the CRC-32 generator for files

testCrc32WithTestFile()

Test the CRC for a basic test file

testCrc32WithTestFileAndSkip()

Test the CRC-32 with a skip specified

class ait.core.test.test_util.EndianSwapU16Test(methodName='runTest')

Bases: unittest.case.TestCase

Unit test of the endianSwap method

testEndianSwap()

Test endian swap

class ait.core.test.test_util.GetFileSizeTest(methodName='runTest')

Bases: unittest.case.TestCase

Unit test for finding size of file

testGetFileSize()

Test the method can properly calculate file size for known test data file

class ait.core.test.test_util.ToBCDTest(methodName='runTest')

Bases: unittest.case.TestCase

Unit test for converting from a number to a Binary Coded Decimal

testToBCDWithInt()

Test toBCD with integer

class ait.core.test.test_util.ToFloatTest(methodName='runTest')

Bases: unittest.case.TestCase

Unit test for toFloat method

testToFloat()

Test toFloat with float string

testToFloatWithDefaultReturnNone()

Test toFloat with return none

testToFloatWithDefaultSpecified()

Test toFloat with new default

class ait.core.test.test_util.ToNumberTest(methodName='runTest')

Bases: unittest.case.TestCase

Unit test for toNumber method

testToNumberWithDefaultReturnNone()

Test toNumber with String and None return

testToNumberWithFloat()

Test toNumber with float specified

testToNumberWithHex()

Test toNumber with Hex specified

testToNumberWithInt()

Test toNumber with int specified

testToNumberWithStringAndDefaultSpecified()

Test toNumber with String and new default specified

class ait.core.test.test_util.ToReprTest(methodName='runTest')

Bases: unittest.case.TestCase

Unit test for converting Python object to string representation

testToReprWithString()

TODO

ait.core.test.test_util.test_YAMLError_exception(*args, **keywargs)
ait.core.test.test_util.test_YAMLValidationError_exception(*args, **keywargs)
ait.core.test.test_util.test_expandPath()
ait.core.test.test_util.test_listAllFiles()