tests.test_magpie

Classes

TestMagpie

Tests different methods found in the Magpie handler.

Module Contents

class tests.test_magpie.TestMagpie(methodName='runTest')[source]

Bases: tests.utils.TestConfig, unittest.TestCase

Tests different methods found in the Magpie handler.

These tests require a running instance of Magpie.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

classmethod setUpClass()[source]

Hook method for setting up class fixture before running tests in the class.

setup(tmpdir)[source]
test_get_or_create_layer_resource_id()[source]

Tests the method used with geoserver to get a layer resource id.

test_create_permission_by_res_id()[source]

Tests the method used to create a permission on a specific resource id.