tests package

Submodules

tests.test_challenge module

class tests.test_challenge.ChallengeTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test cases of the challenge base class.

setUp()[source]
test_build()[source]

Show that build is callable.

test_calc()[source]

Show that calc is callable.

test_class_attributes()[source]

Check setting of class attributes.

test_format()[source]

Show that format writes result into output as string.

test_format_list_of_integers()[source]

Show conatination of list of integers.

test_format_path()[source]

Show conatination of list of nodes to a path.

test_instance_attributes()[source]

Check setting of instance attributes.

test_instance_shadows_class_attribute_of_sample()[source]

Show that instance attribute shadows class attribute.

test_line()[source]

Show that a line is retrievable by index.

test_line_to_edge()[source]

Show a line can be retrieved as edge.

test_line_to_edge_without_weight()[source]

Show a line can be retrieved as edge.

test_line_to_floats()[source]

Show a line can be retrieved as floats.

test_line_to_integers()[source]

Show a line can be retrieved as integers.

test_read()[source]

Show that read creates list of lines.

test_read_edges_from()[source]

Show reading edges self limiting.

test_read_edges_from_to()[source]

Show reading edges limited by start and stop.

test_read_edges_without_given_range()[source]

Show reading edges without given range starting from line 0.

Module contents