Skip to content

Commit

Permalink
Add unit test for apikey setters
Browse files Browse the repository at this point in the history
  • Loading branch information
rshest committed Oct 31, 2017
1 parent dd2ca4e commit 2050868
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_sendgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ def test_apikey_init(self):
my_sendgrid = sendgrid.SendGridAPIClient(apikey="THISISMYKEY")
self.assertEqual(my_sendgrid.apikey, "THISISMYKEY")

my_sendgrid.api_key = "THISISANOTHERKEY"
self.assertEqual(my_sendgrid.api_key, "THISISANOTHERKEY")

my_sendgrid.apikey = "THISISEVENOTHERKEY"
self.assertEqual(my_sendgrid.apikey, "THISISEVENOTHERKEY")

def test_impersonate_subuser_init(self):
temp_subuser = '[email protected]'
sg_impersonate = sendgrid.SendGridAPIClient(
Expand Down

0 comments on commit 2050868

Please sign in to comment.