kyu_8.grasshopper_check_for_factor package

Submodules

kyu_8.grasshopper_check_for_factor.check_for_factor module

kyu_8.grasshopper_check_for_factor.check_for_factor.check_for_factor(base, factor)[source]

This function should test if the factor is a factor of base.

Factors are numbers you can multiply together to get another number.

Return true if it is a factor or false if it is not. :param base: :param factor: :return:

kyu_8.grasshopper_check_for_factor.test_check_for_factor module

class kyu_8.grasshopper_check_for_factor.test_check_for_factor.CheckForFactorTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing check_for_factor function.

test_check_for_factor_false()[source]

Testing check_for_factor function.

This function should test if the factor is a factor of base.

Return false if it is not a factor. :return:

test_check_for_factor_true()[source]

Testing check_for_factor function.

This function should test if the factor is a factor of base.

Return true if it is a factor. :return:

Module contents