def METHOD_NAME(self):
    m = ConcreteModel()
    m.b = Block()
    m.b.v = Var()
    m.c = Block()
    self.assertRaises(
        RuntimeError, m.b.v.getname, fully_qualified=True, relative_to=m.c
    )