test_push_content: now checks that the content has been pushed correctly

This commit is contained in:
Clément Schreiner 2011-03-10 17:13:41 +01:00 committed by Romain Bignon
commit 810a4fe9b0

View file

@ -35,6 +35,8 @@ class MediawikiTest(BackendTest):
content = self.backend.get_content(u"Utilisateur:Clemux/Test")
content.content = "test "+str(datetime.now())
self.backend.push_content(content, message="test weboob", minor=True)
new_content = self.backend.get_content(u"Utilisateur:Clemux/Test")
assert content.content == new_content.content
def test_content_preview(self):
content = self.backend.get_content(u"Utilisateur:Clemux/Test")