Example #1
0
def test_prune_promote():
    p = Container()
    c1 = Container()
    c1['message'] = Message()
    p.add_child(c1)
    assert prune_container(p) == [c1]
Example #2
0
def test_prune_empty():
    c = Container()
    assert prune_container(c) == []
Example #3
0
 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])
Example #4
0
 def test_prune_empty(self):
     c = jwzthreading.Container()
     self.assertEquals(jwzthreading.prune_container(c), [])
Example #5
0
 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])
Example #6
0
 def test_prune_empty(self):
     c = jwzthreading.Container()
     self.assertEquals(jwzthreading.prune_container(c), [])