import unittest import random from unitpy.GeneralTests import GeneralTests from typing import List from pickle import TRUE from unitpy.After import After, getAfter from unitpy.Ignore import getIgnored, Ignore from unitpy.Before import Before class Clazz1: @Before() def hello(self): return "ok" @Ignore() @After() def closeit(self): return "ok" class IgnoreTest(unittest.TestCase): def test1(self): self.assertEqual(False, getIgnored(Clazz1.hello)) def test2(self): self.assertEqual(True, getIgnored(Clazz1.closeit))