def test_cb_start(self): """cb_start() should set defaults for some config variables.""" self.config = self.config_base comments.cb_start(self.args) self.assertEquals(os.path.join(self.datadir, 'comments'), self.config['comment_dir']) self.assertEquals('cmt', self.config['comment_ext']) self.assertEquals('cmt', self.config['comment_draft_ext']) self.assertEquals(0, self.config['comment_nofollow'])
def setUp(self): PluginTest.setUp(self, comments) # add comment templates self.renderer.flavour.update({'comment-story': 'comment-story', 'comment': 'comment'}) # inject the frozen time module comments.time = self.frozen_time # populate with default config vars comments.cb_start(self.args)
def setUp(self): PluginTest.setUp(self, comments) # add comment templates self.renderer.flavour.update({ 'comment-story': 'comment-story', 'comment': 'comment' }) # inject the frozen time module comments.time = self.frozen_time # populate with default config vars comments.cb_start(self.args)