Beispiel #1
0
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
Beispiel #2
0
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
Beispiel #3
0
def test_fakeserver_getComment():
    s = FakeConfluenceServer()
    aid = '917540'
    comment = s.getComment(aid)
    assert isinstance(comment , dict )
    assert len(comment) > 0
    assert 'id' in comment
Beispiel #4
0
def test_fakeserver_getComment():
    s = FakeConfluenceServer()
    aid = '917540'
    comment = s.getComment(aid)
    assert isinstance(comment, dict)
    assert len(comment) > 0
    assert 'id' in comment
Beispiel #5
0
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'
Beispiel #6
0
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'