Method doesn't use the class instance and could be converted into a static method
9
10class TestAnalyseRegex(unittest.TestCase):
11
12 def _assert_valid(self, a):13 check_regex(a)
14
15 def _assert_invalid(self, a, msg):
Description
The method doesn't use its bound instance. Decorate this method with @staticmethod
decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods here.