Example #1
0
class TestTestResult(unittest.TestCase):
    def setUp(self):
        self.results = Results("me")
        self.eNs = "me.results.testResult".lower()
    def testArgsIsNone(self):
        try:
            self.results.testResult(None)
        except ApiParamError, e:
            assert e.item == None
            assert list in e.allowedTypes
            assert iATestId in e.allowedTypes
            assert len(e.allowedTypes) == 2
        else: