def test_fakeserver_removeComment(): s = FakeConfluenceServer() aid = '917540' comment = s.getComment(aid) assert isinstance(comment , dict ) assert s.removeComment(aid) == True assert s.getComment(aid) == None assert s.removeComment(aid) == False
def test_fakeserver_removeComment(): s = FakeConfluenceServer() aid = '917540' comment = s.getComment(aid) assert isinstance(comment, dict) assert s.removeComment(aid) == True assert s.getComment(aid) == None assert s.removeComment(aid) == False
def test_fakeserver_getComment(): s = FakeConfluenceServer() aid = '917540' comment = s.getComment(aid) assert isinstance(comment , dict ) assert len(comment) > 0 assert 'id' in comment
def test_fakeserver_getComment(): s = FakeConfluenceServer() aid = '917540' comment = s.getComment(aid) assert isinstance(comment, dict) assert len(comment) > 0 assert 'id' in comment
def test_fakeserver_editComment(): s = FakeConfluenceServer() aid = '917540' comment = s.getComment(aid) assert isinstance(comment , dict ) c2 = copy.deepcopy(comment) new_comment = dict(c2, content= "Edited content moy bueno.") updated = s.editComment(new_comment) assert updated['content'] == "Edited content moy bueno." assert updated['id'] == '917540' assert updated['creator'] == 'scholer'
def test_fakeserver_editComment(): s = FakeConfluenceServer() aid = '917540' comment = s.getComment(aid) assert isinstance(comment, dict) c2 = copy.deepcopy(comment) new_comment = dict(c2, content="Edited content moy bueno.") updated = s.editComment(new_comment) assert updated['content'] == "Edited content moy bueno." assert updated['id'] == '917540' assert updated['creator'] == 'scholer'