assert_hasattr# pybrops.test.assert_python.assert_hasattr(obj, name)[source]# Assert an object has an attribute. Parameters: obj (object) – Any Python object. attr (str) – String of the attribute. Return type: None