def test_data_proxy_delete(): w = gtk.Entry() data = GObjectUserDataProxy(w) data.foo = 123 assert data.foo == 123 del data.foo assert data.foo is None
def test_data_proxy_set(): w = gtk.Entry() data = GObjectUserDataProxy(w) data.foo = 123 assert w.get_data('foo') == 123