Example #1
0
    def test_create_filer_nearstore(self):
        xmldata = """
<filer name="testfiler1" type="nearstore" />
"""
        node = etree.fromstring(xmldata)
        filer = Filer()
        filer.configure_from_node(node, self.defaults, self.site)

        self.failUnlessEqual(filer.name, "testfiler1")
        self.failUnlessEqual(filer.type, "nearstore")
Example #2
0
    def test_create_filer_nearstore(self):
        xmldata = """
<filer name="testfiler1" type="nearstore" />
"""
        node = etree.fromstring(xmldata)
        filer = Filer()
        filer.configure_from_node(node, self.defaults, self.site)

        self.failUnlessEqual( filer.name, "testfiler1" )
        self.failUnlessEqual( filer.type, "nearstore" )
Example #3
0
    def test_filer_site_correct(self):
        """
        Test the filer's site is set correctly
        """
        xmldata = """
<filer name="testfiler1" type="filer" />
"""
        node = etree.fromstring(xmldata)
        filer = Filer()
        filer.configure_from_node(node, self.defaults, self.site)

        self.failUnlessEqual(filer.site.name, 'testsite')
Example #4
0
    def test_filer_site_correct(self):
        """
        Test the filer's site is set correctly
        """
        xmldata = """
<filer name="testfiler1" type="filer" />
"""
        node = etree.fromstring(xmldata)
        filer = Filer()
        filer.configure_from_node(node, self.defaults, self.site)

        self.failUnlessEqual(filer.site.name, 'testsite')