def get_token(): """ Find geasefile from user's home folder """ return utils.get_info(constants.KEY_GEASE_TOKEN)
def test_wrong_key(self): self.fake_expand.return_value = os.path.join( "tests", "fixtures", "malformed" ) get_info(constants.KEY_GEASE_TOKEN)
def test_get_token(self): self.fake_expand.return_value = os.path.join("tests", "fixtures") user = get_info(constants.KEY_GEASE_TOKEN) eq_(user, "test")
def test_no_gease_file(self): self.fake_expand.return_value = os.path.join("tests") get_info(constants.KEY_GEASE_TOKEN)
def get_default_user(): return utils.get_info(constants.KEY_GEASE_USER)