示例#1
0
 def test_returns_none_because_no_auth_token_was_found_in_environment(self):
     self.assertEqual(None, try_get_auth_token_from_environment())
示例#2
0
 def test_returns_token_found_in_environment(self):
     auth_token = "XoXa-MyAuthTOken123LooksLikeThis1"
     os.environ['SLACK_API_TOKEN'] = auth_token
     self.assertEqual(auth_token, try_get_auth_token_from_environment())
示例#3
0
 def test_returns_none_because_the_contents_of_the_environement_var_is_empty(self):
     os.environ['SLACK_API_TOKEN'] = ''
     self.assertEqual(None, try_get_auth_token_from_environment())