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
def test_hrtf_path(self) : os.environ['HRTF_PATH'] = 'mypath' self.assertEqual('mypath', hrtf_path())