Exemplo n.º 1
0
	def test_collectVars_multiline(self) :
		content = "b{boo}o\ndfs{nice}"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			'boo',
			'nice',
			])
Exemplo n.º 2
0
	def test_collectVars_withVar(self) :
		content = "b{boo}o{far}34"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			'boo',
			'far',
			])
Exemplo n.º 3
0
	def test_collectVars_withManyVarsInALine(self) :
		content = "b{boo}o{far}34"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			'boo',
			'far',
			])
Exemplo n.º 4
0
	def test_collectVars_indexinDroped(self) :
		content = "b{boo}o{far}34\ndfs{nice[3]}"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			'boo',
			'far',
			'nice',
			])
Exemplo n.º 5
0
	def test_collectVars_multiline(self) :
		content = "b{boo}o{far}34\ndfs{nice}"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			'boo',
			'far',
			'nice',
			])
Exemplo n.º 6
0
	def test_collectVars_withNoVar(self) :
		content = "booo"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			])
Exemplo n.º 7
0
	def test_collectVars_indexinDroped(self) :
		content = "dfs{nice[3]}"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			'nice',
			])
Exemplo n.º 8
0
	def test_collectVars_withVar(self) :
		content = "b{boo}o"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			'boo',
			])
Exemplo n.º 9
0
	def test_collectVars_withNoVar(self) :
		content = "booo"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			])