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")
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" )
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')