test_aide.classes.assert_inheritance

test_aide.classes.assert_inheritance(obj, cls)[source]

Asserts whether an object inherits from a particular class.

Uses isinstance.

Parameters
  • obj (object) – The object to test.

  • cls (Class) – Class to check obj is an instance of.