safe.postprocessors.test.test_building_type_postprocessor module

Postprocessors package.

Test building type postprocessor

class safe.postprocessors.test.test_building_type_postprocessor.TestBuildingTypePostprocessor(methodName='runTest')[source]

Bases: unittest.case.TestCase

tearDown()[source]

Run after each test.

test_process_integer_values()[source]

Test for checking if the ratio is wrong (total is more than one).

test_process_string_values()[source]

Test for checking if the ratio is wrong (total is more than one).

test_total_affected_calculated_correctly()[source]

Test to see that the totalling of buildings is done correctly.