safe.utilities.test.test_styling module

InaSAFE Disaster risk assessment tool developed by AusAid -
Styling Tests.

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

class safe.utilities.test.test_styling.StylingTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests for qgis styling related functions.

setUp()[source]
tearDown()[source]
testAddMinMaxToStyle()[source]

Test our add min max to style function.

testMmiColour()[source]

Test that we can get a colour given an mmi number.

test_issue126()[source]

Test that non integer transparency ranges fail gracefully. .. seealso:: https://github.com/AIFDR/inasafe/issues/126

test_issue157()[source]

Verify that we get the error class name back - issue #157 .. seealso:: https://github.com/AIFDR/inasafe/issues/121

test_issue230()[source]

Verify that we give informative errors when style is not correct .. seealso:: https://github.com/AIFDR/inasafe/issues/230

test_issue_121()[source]

Test that point symbol size can be set from style (issue 121). .. seealso:: https://github.com/AIFDR/inasafe/issues/121

test_transparency_of_minimum_value()[source]

Test that transparency of minimum value works when set to 100%