def METHOD_NAME(self):
    element = ElementBase()
    self.assertIsNone(element.prefix)
    element.ref = "foo"
    self.assertIsNone(element.prefix)
    element.ref = "foo:bar"
    self.assertEqual("foo", element.prefix)