コード例 #1
0
ファイル: testicon_theme.py プロジェクト: pombredanne/rox-lib
	def testMissingSection(self):
		i = icon_theme._ini_parser(StringIO("Hello"))
		try:
			i.next()
			assert 0
		except Exception:
			pass
コード例 #2
0
ファイル: testicon_theme.py プロジェクト: pombredanne/rox-lib
	def testParser(self):
		i = icon_theme._ini_parser(test_index)
		self.assertEquals(("Section", "a", "1"), i.next())
		self.assertEquals(("Section", "b", "2"), i.next())
		self.assertEquals(("Section", "c", "3"), i.next())
		self.assertEquals(("Another", "a", "Hello"), i.next())
		self.assertEquals(("Another", "b", "2"), i.next())
		for x in i: assert 0
コード例 #3
0
ファイル: testicon_theme.py プロジェクト: pombredanne/rox-lib
	def testLeadingComment(self):
		i = icon_theme._ini_parser(StringIO("#Hello"))
		for x in i: assert 0