classes#

classes - Python library for testing purposes.

Functions

main()

Function to test the correct operation of the class

Classes

TestClass(name, c_type, color)

TestClass - Class that contains some functions, just for testing purposes

class classes.TestClass(name, c_type, color)#

TestClass - Class that contains some functions, just for testing purposes

__init__(name, c_type, color)#
changeClassStatus()#

Function to update the class type, based on the info from the external function defined in externalFunction()

changeColor(new_color)#

Function to change the assigned color of the class

Parameters

new_color (str) – The new color that wants to replace the old one.

changeName(new_name)#

Function to change the name of the class

Parameters

new_name (str) – The new name that wants to replace the old one.

externalFunction(function_file)#

Function to load an external function through the importlib library

Parameters

function_file (str) – Name of the py file that contains the function.

testFunction(descriptor=None)#

Returns a print with a sentence with the descriptor as string.

Parameters

descriptor (str or None) – The descriptor, duh.

Returns

A sentence with the descriptor

Return type

str

class_type#

Type defined for the class

color#

Color defined for the class

name#

Name for the class

classes.main()#

Function to test the correct operation of the class