Skip to content

Commit

Permalink
Added a functional test for using VerifiedHTTPSConnectionTestCase.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdennes committed Jul 12, 2013
1 parent 8d480a2 commit b95f8f4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_verifiedhttpsconnection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import unittest

from createsend import *

class VerifiedHTTPSConnectionTestCase(unittest.TestCase):

def setUp(self):
self.cs = CreateSend({'api_key': 'not an api key'})

def test_verified_connection(self):
# An actual (non-stubbed) unauthenticated request to test verification.
self.assertRaises(Unauthorized, self.cs.clients)

0 comments on commit b95f8f4

Please sign in to comment.