Permalink
Browse files

Added test for API call with an argument and for a unknown method call.

  • Loading branch information...
1 parent bb070ec commit 4cb2deaf74fc57063aebdd47decbf273db000a77 @JohnSpeno committed Aug 13, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests.py
View
@@ -17,6 +17,12 @@ def test_version(self):
b = self.hs.private_version()
self.assertEqual(a, b)
+ def test_get_with_param(self):
+ a = self.hs.private_filter_get(xFilter=1)
+
+ def test_unknown_method(self):
+ self.assertRaises(helpspot.HelpSpotError, self.hs.private_wuggienorple)
+
if __name__ == '__main__':
import sys
user = sys.argv[1]
@@ -25,5 +31,7 @@ def test_version(self):
suite = unittest.TestSuite()
suite.addTest(TestHelpSpot("test_version", path, user, pword))
+ suite.addTest(TestHelpSpot("test_get_with_param", path, user, pword))
+ suite.addTest(TestHelpSpot("test_unknown_method", path, user, pword))
unittest.TextTestRunner().run(suite)

0 comments on commit 4cb2dea

Please sign in to comment.