Ejemplo n.º 1
0
 def test_010_publish(self):
     env = FakeEnv()
     self.set_fixtures()
     publisher = Publisher(*env.items())
     with self.assertRaises(AttributeError):
         publisher.publish(force=False, watermark=True, hold_titles=False)
     _page = env.items()[2].get()
     self.assertEqual(_page[0].title, self.title)
     self.set_checker(_page[0].body, self.body)
Ejemplo n.º 2
0
 def test_default_publish(self):
     env = FakeEnv()
     self.set_fixtures()
     publisher = Publisher(*env.items())
     with self.assertRaises(AttributeError):
         publisher.publish()
     _page = env.items()[2].get()
     self.assertEqual(_page[0].title, self.title)
     self.set_checker(_page[0].body, self.body)