Exemple #1
0
	def test_hrtf_path_whenNoDefined(self) :
		if 'HRTF_PATH' in os.environ : del os.environ['HRTF_PATH']
		try :
			hrtf_path()
			self.fail("Exit expected")
		except SystemExit :
			# TODO: Check and mute the stderr message
			pass
Exemple #2
0
	def test_hrtf_path(self) :
		os.environ['HRTF_PATH'] = 'mypath'
		self.assertEqual('mypath', hrtf_path())