assert_method_isabstract#

pybrops.test.assert_python.assert_method_isabstract(obj, name)[source]#

Assert an object has an abstract method. Must have several attributes:

  1. have the method

  2. have a docstring for the method

  3. method must raise NotImplementedError

Parameters:
  • obj (object) – Any Python object.

  • met (str) – Name of the method to test

Return type:

None