def test_varsTree_unordered(self) : theVars = [ 'nice', 'far', 'boo', ] yaml = yamlns._varsTree(theVars).dump() self.assertEqual(yaml, 'boo: \'\'\n' 'far: \'\'\n' 'nice: \'\'\n' )
def test_varsTree_withSubVars(self) : theVars = [ 'upper.boo', 'upper.far', 'upper.nice', ] yaml = yamlns._varsTree(theVars).dump() self.assertEqual(yaml, 'upper:\n' ' boo: \'\'\n' ' far: \'\'\n' ' nice: \'\'\n' )