def test_parent():
 parent = Parent()
 t = usertypes.Timer(parent)
 assert (t.parent() is parent)

def test_parent ( ) : parent = Parent ( ) t = usertypes . Timer ( parent ) assert ( t . parent ( ) is parent )
make sure the parent is set correctly .