def test_good_env(self, mock1, mock2): try: cdir = config.get_conf_dir() assert "configuration/" in cdir except EnvironmentError as e: assert str(e) == "Could not find conf directory"
def test_good_env(self, mock1, mock2): try: cdir = config.get_conf_dir() assert 'configuration/' in cdir except EnvironmentError as e: assert str(e) == 'Could not find conf directory'
def test_bad_env(self, mock1): try: config.get_conf_dir() assert 0 except EnvironmentError as e: assert str(e) == "Could not find conf directory"
def test_bad_env(self, mock1): try: config.get_conf_dir() assert 0 except EnvironmentError as e: assert str(e) == 'Could not find conf directory'