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