summaryrefslogtreecommitdiff
path: root/tests/test_bin.py
blob: f7186fc09d57ede912a969742574f1e90624b174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import unittest

from common import gtk

class MyBin(gtk.Bin):
    __gtype_name__ = 'MyBin'
    def __init__(self):
        gtk.Bin.__init__(self)

class BinTest(unittest.TestCase):
    def testSet(self):
        bin = MyBin()
        self.assertEqual(bin.child, None)
        child = gtk.Label()
        bin.child = child
        self.assertEqual(bin.child, child)
        bin.child = None
        self.assertEqual(bin.child, None)