def METHOD_NAME(recwarn):
    class TestObj(OphydObject):
        SUB_TEST = "value"
        _default_sub = SUB_TEST
    test_obj = TestObj(name="name", parent=None)
    test_obj.subscribe(lambda *args, **kwargs: None)
    assert len(recwarn) == 0