def func_case_0(self): test.success("") print((test.is_assert())) test.fail("") print((test.is_assert())) test.success("") print((test.is_assert()))
def func_case(self): try: test.fail_fatal("") except result.TestErrorFatal: print 'z'*3 test.success("")
def func_case(self): try: test.fail_fatal("") except result.TestErrorFatal: print(('z'*3)) test.success("")
def func_case_0(self): test.success("") print test.is_assert() test.fail("") print test.is_assert() test.success("") print test.is_assert()
def json_error_key(self): vector = [{10: 10}, {10.0: 10}, {self.json_error_key: 10}] for obj in vector: try: test.trace_json(obj) test.fail() except TypeError, ex: test.success(ex)
def json_valid(self): vector = [{"key_a":"test"}, {"key_b":10}, {"ééé":"ééé"}, ] for obj in vector: test.trace_json(obj) test.success()
def json_error_reservedkey(self): vector = [{"jenkins_build_number":"test"}, {"script":"test"}, ] for obj in vector: try: test.trace_json(obj) except ValueError as ex: pass test.success()
def json_error_dict(self): vector = [[ "test", ], "test", 10, self.json_error_dict] for obj in vector: try: test.trace_json(obj) test.fail() except TypeError, ex: test.success(ex)
def json_error_key(self): vector = [{10:10}, {10.0:10}, {self.json_error_key:10}] for obj in vector: try: test.trace_json(obj) test.fail() except TypeError as ex: test.success(ex)
def json_error_dict(self): vector = [["test",], "test", 10, self.json_error_dict] for obj in vector: try: test.trace_json(obj) test.fail() except TypeError as ex: test.success(ex)
def json_valid(self): vector = [ { "key_a": "test" }, { "key_b": 10 }, { u"ééé": u"ééé" }, ] for obj in vector: test.trace_json(obj) test.success()
def func_case(self): """ description of fun case""" test.success("")
def func_case(self): test.success("")
def case_2(self): pytestemb.success("")
try: test.trace_json(obj) test.fail() except TypeError, ex: test.success(ex) def json_error_reservedkey(self): vector = [{"jenkins_build_number":"test"}, {"script":"test"}, ] for obj in vector: try: test.trace_json(obj) except ValueError, ex: pass test.success() def json_valid(self): vector = [{"key_a":"test"}, {"key_b":10}, {u"ééé":u"ééé"}, ] for obj in vector: test.trace_json(obj) test.success() if __name__ == "__main__":
def case_0(self): pytestemb.success("")
def case_0(): """ @goal : - @coverage : - """ test.success("success")
def defaultValue(): """ @goal : - @coverage : - """ test.success("success")
def case_ok(self): test.success("ok")
def test_ok(): test.success() time.sleep(ran_test_time())
def test_ok(): test.success() time.sleep(0.1)
def test_assert(): for itm in vector: test.assert_true(True, itm) test.assert_true(False, itm) test.success(itm)
def json_error_reservedkey(self): vector = [ { "jenkins_build_number": "test" }, { "script": "test" }, ] for obj in vector: try: test.trace_json(obj) except ValueError, ex: pass test.success() def json_valid(self): vector = [ { "key_a": "test" }, { "key_b": 10 }, { u"ééé": u"ééé" }, ] for obj in vector: test.trace_json(obj)
def test_ok(): test.success()
def test_ok(self): pytestemb.success()