Package madrona :: Package manipulators :: Module tests :: Class ManipulatorsTest
[hide private]

Class ManipulatorsTest

source code

django.test.TestCase --+
                       |
                      ManipulatorsTest

Instance Methods [hide private]
 
setUp(self)
Build geometries for the following test cases:...
source code
 
tearDown(self) source code
 
test_clipToGraticule(self)
Tests the following:...
source code
 
test_clipToStudyRegion(self)
Tests the following:...
source code
 
test_multipleManipulators(self)
Tests the following:...
source code
 
test_studyregion(self)
Tests the following:...
source code
Class Variables [hide private]
  fixtures = ['manipulators_test_data']
Method Details [hide private]

setUp(self)

source code 

Build geometries for the following test cases:
code0_poly  clips successfully
code1_poly  overlaps with estuary, oceanic part chosen
code2_poly  target geometry lies outside of geometry being clipped against
                or in the case of Estuary clipping, no estuaries were found to clip against
code3_poly  target geometry is not valid
code4_poly  this code has the most meanings, each depending on context
                in the case of Estuary clipping, it means the target was estuary only
code5_poly  overlaps with estuary, estuary part chosen
other case  one or more required kwargs not provided

test_clipToGraticule(self)

source code 

Tests the following:
    clip to graticule

Decorators:
  • @override_settings(GEOMETRY_CLIENT_SRID= 4326)

test_clipToStudyRegion(self)

source code 

Tests the following:
    clipped to study region
    outside study region
    geometry not valid

Decorators:
  • @override_settings(GEOMETRY_CLIENT_SRID= 4326)

test_multipleManipulators(self)

source code 

Tests the following:
    clip to study region and clip to estuaries manipulations
    clip to study region and clip to graticules manipulations

test_studyregion(self)

source code 

Tests the following:
    clipped to study region