def METHOD_NAME(mocked_mockobject):
    """
    builtin hasattr & getattr functions, these don't work on dictionaries but
    they do on classes.
    """
    assert hasattr(mocked_mockobject, 'records') is True
    assert hasattr(mocked_mockobject, 'cost') is False
    assert getattr(mocked_mockobject, 'records') == 12
    with pytest.raises(AttributeError):
        getattr(mocked_mockobject, 'jobs')