def test_getformat(self):

        frmt = get_format('GML', self.validate)
        self.assertTrue(frmt.mime_type, FORMATS.GML.mime_type)
        self.assertTrue(frmt.validate('ahoj', 1))

        frmt2 = get_format('GML')

        self.assertTrue(frmt.same_as(frmt2))
test for pypws.inout.formats.get_format function
dataset/ETHPy150Open geopython/pywps/tests/test_formats.py/FormatsTest.test_getformat