Exemple #1
0
    def test_normal(self):

        site = self._initSite()
        context = DummyExportContext(site)

        from Products.CMFSetup.properties import exportSiteProperties
        exportSiteProperties(context)

        self.assertEqual(len(context._wrote), 1)
        filename, text, content_type = context._wrote[0]
        self.assertEqual(filename, 'properties.xml')
        self._compareDOM(text, _NORMAL_EXPORT)
        self.assertEqual(content_type, 'text/xml')
Exemple #2
0
    def test_normal(self):

        site = self._initSite()
        context = DummyExportContext( site )

        from Products.CMFSetup.properties import exportSiteProperties
        exportSiteProperties(context)

        self.assertEqual( len(context._wrote), 1 )
        filename, text, content_type = context._wrote[0]
        self.assertEqual(filename, 'properties.xml')
        self._compareDOM(text, _NORMAL_EXPORT)
        self.assertEqual(content_type, 'text/xml')