예제 #1
0
 def func_case_0(self):
     test.success("")
     print((test.is_assert()))
     test.fail("")
     print((test.is_assert()))
     test.success("")
     print((test.is_assert()))
예제 #2
0
 def func_case(self):
     
     try:
         test.fail_fatal("")
     except result.TestErrorFatal:
         print 'z'*3
         test.success("")
예제 #3
0
 def func_case(self):
     
     try:
         test.fail_fatal("")
     except result.TestErrorFatal:
         print(('z'*3))
         test.success("")
예제 #4
0
 def func_case_0(self):
     test.success("")
     print test.is_assert()
     test.fail("")
     print test.is_assert()
     test.success("")
     print test.is_assert()
예제 #5
0
 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)
예제 #6
0
 def json_valid(self):
     vector = [{"key_a":"test"},
               {"key_b":10},
               {"ééé":"ééé"},
               ]
     for obj in vector:        
         test.trace_json(obj)
     test.success()
예제 #7
0
 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()
예제 #8
0
 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)
예제 #9
0
 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)
예제 #10
0
 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)    
예제 #11
0
 def json_valid(self):
     vector = [
         {
             "key_a": "test"
         },
         {
             "key_b": 10
         },
         {
             u"ééé": u"ééé"
         },
     ]
     for obj in vector:
         test.trace_json(obj)
     test.success()
예제 #12
0
 def func_case(self):
     """ description of fun case"""
     test.success("")
예제 #13
0
 def func_case(self):
     test.success("")
예제 #14
0
 def case_2(self):
     pytestemb.success("")
예제 #15
0
            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__":
    
    
예제 #16
0
 def case_0(self):
     pytestemb.success("")
예제 #17
0
def case_0():
    """
    @goal : -
    @coverage : -
    """
    test.success("success")
예제 #18
0
def defaultValue():
    """
    @goal : -
    @coverage : -
    """
    test.success("success")
예제 #19
0
 def case_ok(self):
     test.success("ok")
예제 #20
0
def test_ok():
    test.success()
    time.sleep(ran_test_time())
예제 #21
0
 def case_ok(self):
     test.success("ok")
예제 #22
0
def defaultValue():
    """
    @goal : -
    @coverage : -
    """
    test.success("success")
예제 #23
0
def test_ok():
    test.success()
    time.sleep(ran_test_time())
예제 #24
0
 def func_case(self):
     """ description of fun case"""
     test.success("")
예제 #25
0
def test_ok():
    test.success()
    time.sleep(0.1)
예제 #26
0
def case_0():
    """
    @goal : -
    @coverage : -
    """
    test.success("success")
예제 #27
0
def test_assert():
    for itm in vector:
        test.assert_true(True,  itm)
        test.assert_true(False, itm)
        test.success(itm)
예제 #28
0
    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)
예제 #29
0
def test_ok():
    test.success()
예제 #30
0
 def test_ok(self):
     pytestemb.success()