Beispiel #1
0
 def test_key_order(self):
     w = Wax()
     w.zz = Wax()
     w.aa = Wax()
     w.aa.xx = Wax()
     w.aa.bb = Wax()
     w.zz.cc = Wax()
     w.zz.yy = Wax()
     expected = ['[zz.cc]', '[zz.yy]', '[aa.xx]', '[aa.bb]']
     res = str(w).split()
     self.assertEquals(res, expected)
Beispiel #2
0
 def test_key_order(self):
     w = Wax()
     w.zz = Wax()
     w.aa = Wax()
     w.aa.xx = Wax()
     w.aa.bb = Wax()
     w.zz.cc = Wax()
     w.zz.yy = Wax()
     expected = ['[zz.cc]','[zz.yy]','[aa.xx]','[aa.bb]']
     res = str(w).split()
     self.assertEquals(res, expected)