tests.check module

Tests for the data_helper.check module

class tests.check.HasWhitespaceTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

check.has_whitespace() test cases

test_no_space()[source]

Test if no whitespace is detected

test_space()[source]

Test if whitespace is detected

class tests.check.IsBoolTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

check.is_bool() test cases

test_bool()[source]

Test if a bool is True

test_list()[source]

Test if a list is False

test_number()[source]

Test if a number is False

test_string()[source]

Test if string is False

class tests.check.IsIntNegTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

check.is_int_pos() test cases

test_negative_int()[source]

Test if a negative int is detected

test_positive_int()[source]

Test if a positive int is detected

test_string()[source]

Test if string is False

test_zero()[source]

Test if zero is detected

class tests.check.IsIntNotNegTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

check.is_int_not_neg() test cases

test_negative_int()[source]

Test if a negative int is detected

test_positive_int()[source]

Test if a positive int is detected

test_string()[source]

Test if string is False

test_zero()[source]

Test if zero is detected

class tests.check.IsIntPosTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

check.is_int_pos() test cases

test_negative_int()[source]

Test if a negative int is detected

test_positive_int()[source]

Test if a positive int is detected

test_string()[source]

Test if string is False

test_zero()[source]

Test if zero is detected

class tests.check.IsIntTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

check.is_int() test cases

test_negative_int()[source]

Test if a negative int is detected

test_positive_int()[source]

Test if a positive int is detected

test_string()[source]

Test if string is False

class tests.check.IsListTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

check.is_list() test cases

test_dict()[source]

Test if dict is False

test_list()[source]

Test if list is True

test_string()[source]

Test if string is False

class tests.check.IsStrEmptyTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

check.is_str_empty() test cases

test_empty_string()[source]

Test if an empty string is True

test_list()[source]

Test if a list is False

test_number()[source]

Test if a number is False

test_string()[source]

Test if non empty string is False

class tests.check.IsStrNotEmptyTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

check.is_str_not_empty() test cases

test_empty_string()[source]

Test if an empty string is False

test_list()[source]

Test if a list is False

test_number()[source]

Test if a number is False

test_string()[source]

Test if non empty string is True

class tests.check.IsStrTestCase(methodName='runTest')[source]

Bases: tests.BaseTest.BaseTest

check.is_str() test cases

test_list()[source]

Test if a list is False

test_number()[source]

Test if a number is False

test_string()[source]

Test if string is True