Пример #1
0
 def test_add_gallery(self):
     from lasco import api
     from lasco.models import Gallery
     assert not self.session.query(Gallery).count()
     api.add_gallery(self.session, u'name', u'title')
     g = self.session.query(Gallery).one()
     self.assertEqual(g.name, u'name')
     self.assertEqual(g.title, u'title')
Пример #2
0
 def add_gallery(self, name, title):
     return lascoapi.add_gallery(self.session, name, title)