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_0(self):
     test.success("")
     print test.is_assert()
     test.fail("")
     print test.is_assert()
     test.success("")
     print test.is_assert()
Esempio n. 3
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)
Esempio n. 4
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)
Esempio n. 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 as ex:
             test.success(ex)
Esempio n. 6
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)    
Esempio n. 7
0
 def case_ko(self):
     test.fail("ko")
Esempio n. 8
0
 def case_2(self):
     pytestemb.fail("")
Esempio n. 9
0
def fail_02():
    test.fail("fail")
    test.fail_fatal("fail_fatal")
Esempio n. 10
0
def fail_01():
    test.fail()
    test.fail_fatal()
Esempio n. 11
0
 def case_ko(self):
     test.fail("ko")
Esempio n. 12
0
 def setup(self):
     test.fail("")
Esempio n. 13
0
def test_ko():
    test.fail()
    time.sleep(ran_test_time())
Esempio n. 14
0
def fail_01():
    test.fail()
    test.fail_fatal()
Esempio n. 15
0
 def setup(self):
     test.fail("")
Esempio n. 16
0
def fail_02():
    test.fail("fail")
    test.fail_fatal("fail_fatal")
Esempio n. 17
0
def test_ko():
    test.fail()
    time.sleep(ran_test_time())
Esempio n. 18
0
def test_ko():
    test.fail()
    time.sleep(0.1)    
Esempio n. 19
0
 def case_0(self):
     pytestemb.fail("")
Esempio n. 20
0
def test_ko():
    test.fail()
Esempio n. 21
0
 def test_ko(self):
     pytestemb.fail()