Example #1
0
	def test_caesar_reads_chapt2_3_4(self):
		#print("")
		tds = TEIDataSource(caesar_gallic)
		text = tds.read_fragment('2.3.4')
Example #2
0
	def test_sallust_reads_chapt1(self):
		#print("")
		tds = TEIDataSource(sallust_cataline)
		text = tds.read_fragment('1')
Example #3
0
	def test_propertius_reads_1_2(self):
		#print("")
		tds = TEIDataSource(propertius)
		text = tds.read_fragment('1.2')
Example #4
0
	def test_homer_unreadable(self):
		#print("")
		tds = TEIDataSource(homer_iliad)
		with self.assertRaises(Exception): #, "No text part with ref: 1"):
			text = tds.read_fragment('1')
Example #5
0
	def test_cicero_reads_chapt2_2(self):
		#print("")
		tds = TEIDataSource(cicero_derepublica)
		text = tds.read_fragment('2,2')
		self.assertIsNotNone(text)
Example #6
0
	def test_sallust_doesnotread_chapt1000000(self):
		#print("")
		tds = TEIDataSource(sallust_cataline)
		with self.assertRaises(Exception): # "No text part with ref: 1000000"):
			tds.read_fragment('1000000')