def test_should_not_get_existing_token(self): with patch('os.path.isfile', return_value=False): self.assertEqual(self.token_request._get_existing_token(), None)