def test_prune_promote(): p = Container() c1 = Container() c1['message'] = Message() p.add_child(c1) assert prune_container(p) == [c1]
def test_prune_empty(): c = Container() assert prune_container(c) == []
def test_prune_promote(self): p = jwzthreading.Container() c1 = jwzthreading.Container() c1.message = jwzthreading.Message() p.add_child(c1) self.assertEquals(jwzthreading.prune_container(p), [c1])
def test_prune_empty(self): c = jwzthreading.Container() self.assertEquals(jwzthreading.prune_container(c), [])