safe.utilities.test.test_utilities module

Tests for utilities.

class safe.utilities.test.test_utilities.UtilitiesTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests for reading and writing of raster and vector data

setUp()[source]

Test setup.

tearDown()[source]

Test tear down.

test_accentuated_characters()[source]

Test that accentuated characters has been replaced.

test_compare_version()[source]

Test for compare_version

test_get_keyword_from_file()[source]

Get keyword from a filesystem file’s .keyword file.

test_get_qgis_version()[source]

Test we can get the version of QGIS

test_humanize_seconds()[source]

Test that humanise seconds works.

test_impact_layer_attribution()[source]

Test we get an attribution html snippet nicely for impact layers.

test_localised_attribution(*args, **kwargs)[source]

Test we can localise attribution.

test_stacktrace_html()[source]

Stack traces can be caught and rendered as html