def test_collectVars_multiline(self) : content = "b{boo}o\ndfs{nice}" result = yamlns._collectVars(content) self.assertEqual(result,[ 'boo', 'nice', ])
def test_collectVars_withVar(self) : content = "b{boo}o{far}34" result = yamlns._collectVars(content) self.assertEqual(result,[ 'boo', 'far', ])
def test_collectVars_withManyVarsInALine(self) : content = "b{boo}o{far}34" result = yamlns._collectVars(content) self.assertEqual(result,[ 'boo', 'far', ])
def test_collectVars_indexinDroped(self) : content = "b{boo}o{far}34\ndfs{nice[3]}" result = yamlns._collectVars(content) self.assertEqual(result,[ 'boo', 'far', 'nice', ])
def test_collectVars_multiline(self) : content = "b{boo}o{far}34\ndfs{nice}" result = yamlns._collectVars(content) self.assertEqual(result,[ 'boo', 'far', 'nice', ])
def test_collectVars_withNoVar(self) : content = "booo" result = yamlns._collectVars(content) self.assertEqual(result,[ ])
def test_collectVars_indexinDroped(self) : content = "dfs{nice[3]}" result = yamlns._collectVars(content) self.assertEqual(result,[ 'nice', ])
def test_collectVars_withVar(self) : content = "b{boo}o" result = yamlns._collectVars(content) self.assertEqual(result,[ 'boo', ])