Permalink
Browse files

Adding some more tests

  • Loading branch information...
1 parent 0452b0f commit d8d4f6a002c3f3fc624807edfa5af776ee1df69c Clinton Ecker committed Feb 1, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 lighthouse.py
View
@@ -128,6 +128,13 @@ def _nil(self, data):
return None
def _get_data(self, path):
+ """Takes a path, joins it with the project's URL and grabs that
+ resource's XML data
+
+ >>> lh = Lighthouse()
+ >>> lh._get_data('projects.xml')
+ Error: Please set token and url properly
+ """
if self.token != None and self.url != None:
endpoint = os.path.join(self.url, path)
rh = urllib.urlopen(endpoint)

0 comments on commit d8d4f6a

Please sign in to comment.