Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/aes signature #50

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
add test case
  • Loading branch information
YoungWing committed Nov 10, 2022
commit 23927446a907f3f8b70e2b0fa94806f74e6dc228
8 changes: 7 additions & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest import TestCase

import aftership
from aftership.util import get_api_key
from aftership.util import get_api_key, get_api_secret


class UtilsTestCase(TestCase):
Expand All @@ -10,3 +10,9 @@ def test_get_key(self):
aftership.api_key = api_key
self.assertEqual(aftership.api_key, api_key)
self.assertEqual(aftership.api_key, get_api_key())

def test_get_secret(self):
api_secret = '12345678'
aftership.api_secret = api_secret
self.assertEqual(aftership.api_secret, api_secret)
self.assertEqual(aftership.api_secret, get_api_secret())