Changeset 765
- Timestamp:
- 08/05/08 13:43:22 (4 months ago)
- Files:
-
- oss/amplee/amplee/test/store.conf (modified) (1 diff)
- oss/amplee/amplee/test/test_service.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
oss/amplee/amplee/test/store.conf
r653 r765 43 43 base_edit_uri = gig/ 44 44 base_media_edit_uri = gig/ 45 xml_attrs = id,gig 45 46 accept_media_types = application/atom+xml;type=entry,image/jpeg,text/plain,image/png,image/gif 46 47 enable_cache = False oss/amplee/amplee/test/test_service.py
r621 r765 4 4 5 5 from amplee.loader.iniloader import loader 6 from amplee.utils import ATOM10_NS 6 7 7 8 base_dir = os.getcwd() … … 32 33 self.assertEqual(len(workspaces), 1) 33 34 self.assertEqual(unicode(workspaces[0].title), self.service.workspaces[0].title) 35 36 def test_04_collection(self): 37 cols = self.service.get_collections() 38 self.assertEqual(len(cols), 1) 39 40 col = self.service.get_collection('gigs') 41 self.failIfEqual(col, None) 42 43 col = self.service.get_collection_by_xml_id('gig') 44 self.failIfEqual(col, None) 45 46 col = self.service.get_collection_by_uri('http://localhost:8090/gig/') 47 self.failIfEqual(col, None) 48 49 def test_05_feed(self): 50 doc = self.service.make_feed(items=[], xslt_path=u'some/path') 51 self.assert_(ATOM10_NS == doc.feed.namespaceURI) 52 self.assertEqual(doc.xml_children[0].target, u"xml-stylesheet") 53 self.assertEqual(doc.xml_children[0].data, u'href="some/path" type="text/xsl"') 34 54 35 55 if __name__ == '__main__':
