Exemple #1
0
	def test_selectHrtfDatabase_2dSublayout(self) :
		os.environ['HRTF_PATH'] = 'basepath'
		self.assertEqual(
			'basepath/mitKemarFullL-2d20.hrtfs',
			selectHrtfDatabase("--speakers 20".split()))
Exemple #2
0
	def test_selectHrtfDatabase_ircam(self) :
		os.environ['HRTF_PATH'] = 'basepath/'
		self.assertEqual(
			'basepath/ircam15L.hrtfs',
			selectHrtfDatabase("--ircam 15".split()))
Exemple #3
0
	def test_selectHrtfDatabase_explicit(self) :
		os.environ['HRTF_PATH'] = 'basepath'
		self.assertEqual(
			'my/database.hrtfs',
			selectHrtfDatabase("--database my/database.hrtfs".split()))
Exemple #4
0
	def test_selectHrtfDatabase_right(self) :
		os.environ['HRTF_PATH'] = 'basepath'
		self.assertEqual(
			'basepath/mitKemarFullR.hrtfs',
			selectHrtfDatabase("-r".split()))
Exemple #5
0
	def test_selectHrtfDatabase_trailingSlash(self) :
		os.environ['HRTF_PATH'] = 'basepath/'
		self.assertEqual(
			'basepath/mitKemarFullL.hrtfs',
			selectHrtfDatabase("".split()))
Exemple #6
0
	def test_selectHrtfDatabase_withOtherPath(self) :
		os.environ['HRTF_PATH'] = 'otherpath'
		self.assertEqual(
			'otherpath/mitKemarFullL.hrtfs',
			selectHrtfDatabase("".split()))
Exemple #7
0
	def test_selectHrtfDatabase_mitCompact(self) :
		os.environ['HRTF_PATH'] = 'basepath/'
		self.assertEqual(
			'basepath/mitKemarCompactL.hrtfs',
			selectHrtfDatabase("--mitcompact".split()))
Exemple #8
0
	def test_selectHrtfDatabase_mitDiffuse(self) :
		os.environ['HRTF_PATH'] = 'basepath/'
		self.assertEqual(
			'basepath/mitKemarDiffuseL.hrtfs',
			selectHrtfDatabase("--mitdiffuse".split()))
Exemple #9
0
	def test_selectHrtfDatabase_kreuzer(self) :
		os.environ['HRTF_PATH'] = 'basepath/'
		self.assertEqual(
			'basepath/kreuzerDatabase2.hrtfs',
			selectHrtfDatabase("--kreuzer".split()))