source: unitpy/test/IgnoreTest.py@ 1369

Last change on this file since 1369 was 1321, checked in by wouter, 2 weeks ago

#407 bujmp unitpy to 1.1.2, added @Ignore.

File size: 601 bytes
RevLine 
[1321]1import unittest
2import random
3from unitpy.GeneralTests import GeneralTests
4from typing import List
5from pickle import TRUE
6from unitpy.After import After, getAfter
7from unitpy.Ignore import getIgnored, Ignore
8from unitpy.Before import Before
9
10
11class Clazz1:
12 @Before()
13 def hello(self):
14 return "ok"
15
16 @Ignore()
17 @After()
18 def closeit(self):
19 return "ok"
20
21
22
23
24class IgnoreTest(unittest.TestCase):
25 def test1(self):
26 self.assertEqual(False, getIgnored(Clazz1.hello))
27
28 def test2(self):
29 self.assertEqual(True, getIgnored(Clazz1.closeit))
Note: See TracBrowser for help on using the repository browser.