Permalink
Browse files

Rename setHTML to setHtml to be consistent with upper/lowercase getHtml

  • Loading branch information...
1 parent bd678bf commit bdfeb2c7aecc48762ad1dc112d14967c2aab2bbe @timtebeek timtebeek committed Dec 24, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −1 src/py_etherpad.py
  2. +2 −1 src/test/test_py_etherpad.py
View
@@ -187,7 +187,7 @@ def setText(self, padID, text):
"text": text
})
- def setHTML(self, padID, html):
+ def setHtml(self, padID, html):
"""sets the text of a pad from html"""
return self.call("setHTML", {
"padID": padID,
@@ -29,7 +29,8 @@ def testCreateHTMLPad(self):
#Create and remove pad
print self.ep_client.createPad('htmlpad')
- print self.ep_client.setHTML('htmlpad', content)
+ print self.ep_client.setHtml('htmlpad', content)
+ print self.ep_client.getHtml('htmlpad')
print self.ep_client.deletePad('htmlpad')
if __name__ == "__main__":

0 comments on commit bdfeb2c

Please sign in to comment.