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))
Produces two strings representing the headers and message body.
dataset/ETHPy150Open geopython/pywps/tests/test_formats.py/FormatsTest.test_getformat--crossover with--dataset/ETHPy150Open slimta/python-slimta/slimta/envelope.py/Envelope.flatten