Ejemplo n.º 1
0
class TestQuery(unittest.TestCase):
    def setUp(self):
        self.stats = Stats("me")
    def testAbortNothing(self):
        assert isinstance(self.stats.query(), iApiAction)
    def testQueryNone(self):
        try:
            self.stats.query(None)
        except TypeError, _e:
            assert True
        else:
Ejemplo n.º 2
0
 def setUp(self):
     self.stats = Stats("me")