Example #1
0
class TestQueryAll(unittest.TestCase):
    def setUp(self):
        self.c = Configuration("me")
    def testWithInvalidArgs(self):
        args = [1, 2, 3]
        try:
            self.c.queryAll(args)
        except TypeError, _e:
            assert True
        else:
Example #2
0
class TestConfigure(unittest.TestCase):
    def setUp(self):
        self.c = Configuration("me")
    def testWithInvalidArgs(self):
        args = [1, 2, 3]
        try:
            self.c.configure(args)
        except ApiParamError, e:
            assert e.item == args
            assert dict in e.allowedTypes
            assert len(e.allowedTypes) == 1
        else:
Example #3
0
 def setUp(self):
     self.c = Configuration("me")