decompy.tests.test_filtercfiles package

Submodules

decompy.tests.test_filtercfiles.test_filter_c_file module

class decompy.tests.test_filtercfiles.test_filter_c_file.FilterCTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests the filter_c_file class and its static methods.

setUp()[source]

Initializes a test filter C unit.

test_blacklisted_words()[source]

tests if the line contains any of the blacklisted words from our list. :return: bool assert

test_bytes()[source]

tests out the max byte functionality from the filter_c_file class. :return: bool assert

test_headers()[source]

tests if the line contains the correct headers and not standard ones or ones we don’t want. :return: bool assert

test_valid_data()[source]

tests the entire file for valid data, combining check_max_bytes, check_blacklisted_words, and check_headers. :return: bool assert

test_valid_filtering()[source]

tests returning the correct amount :return: bool assert :rtype: assert

Module contents