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