Пример #1
0
	def test_collectVars_multiline(self) :
		content = "b{boo}o\ndfs{nice}"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			'boo',
			'nice',
			])
Пример #2
0
	def test_collectVars_withVar(self) :
		content = "b{boo}o{far}34"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			'boo',
			'far',
			])
Пример #3
0
	def test_collectVars_withManyVarsInALine(self) :
		content = "b{boo}o{far}34"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			'boo',
			'far',
			])
Пример #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',
			])
Пример #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',
			])
Пример #6
0
	def test_collectVars_withNoVar(self) :
		content = "booo"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			])
Пример #7
0
	def test_collectVars_indexinDroped(self) :
		content = "dfs{nice[3]}"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			'nice',
			])
Пример #8
0
	def test_collectVars_withVar(self) :
		content = "b{boo}o"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			'boo',
			])
Пример #9
0
	def test_collectVars_withNoVar(self) :
		content = "booo"
		result = yamlns._collectVars(content)
		self.assertEqual(result,[
			])