def METHOD_NAME(self):
    element = ElementBase()
    with self.assertRaises(SchemaValueError):
        element.real_name
    element.ref = "bar:foo"
    self.assertEqual("foo", element.real_name)
    element.name = "foo:bar"
    self.assertEqual("bar", element.real_name)