def setup_method(self, method): DeclarativeTestCase.setup_method(self, method) article = self.Article( description=u'Some description', name=u'Some name' ) self.session.add(article) self.session.commit() self.session.expunge_all()
def setup_method(self, method): DeclarativeTestCase.setup_method(self, method) self.ArticleTranslation = self.Article.__translatable__['class'] article = self.Article( description=u'Some description', name=u'Some name' ) self.session.add(article) self.session.commit()
def setup_method(self, method): DeclarativeTestCase.setup_method(self, method) translation_manager.options['auto_created_locales'] = [u'fi', u'en']