Exemplo n.º 1
0
    def test_get_supported_schemas(self):
        """Test supported schemas"""

        schemas = sorted(get_supported_schemas())
        self.assertIsInstance(schemas, list, 'Expected list')
        self.assertEqual(len(schemas), 3, 'Expected 3 supported schemas')
        self.assertEqual(schemas,
                         sorted(['iso19139', 'iso19139-hnap', 'wmo-cmp']),
                         'Expected exact list of supported schemas')
Exemplo n.º 2
0
    def test_get_supported_schemas(self):
        """Test supported schemas"""

        schemas = sorted(get_supported_schemas())
        self.assertIsInstance(schemas, list, 'Expected list')
        self.assertEqual(len(schemas), 3, 'Expected 3 supported schemas')
        self.assertEqual(schemas,
                         sorted(['iso19139', 'iso19139-hnap', 'wmo-cmp']),
                         'Expected exact list of supported schemas')