safe.impact_statistics.test.test_zonal_stats module

InaSAFE Disaster risk assessment tool developed by AusAid -
Zonal 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.impact_statistics.test.test_zonal_stats.ZonalStatsTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests for zonal related functions.

# Note there is a weird issue on OSX where # geometry comes back as none all the time when testing # running the test again will randomly succeed in fetching geometries # properly.

setUp()[source]
tearDown()[source]
test_cell_info_for_bbox()[source]

Test that cell info for bbox returns expected values.

test_zonal()[source]

Test that zonal stats returns the expected output.

test_zonal_with_exact_cell_boundaries()[source]

Test that zonal stats returns the expected output.