Skip to content

Commit

Permalink
Making sure base JSONConnection has no constants set.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Mar 19, 2015
1 parent da1ec9e commit 4baf1ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gcloud/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ class MockConnection(self._getTargetClass()):
API_VERSION = 'vMOCK'
return MockConnection(*args, **kw)

def test_class_defaults(self):
klass = self._getTargetClass()
self.assertIsNone(klass.API_URL_TEMPLATE)
self.assertIsNone(klass.API_BASE_URL)
self.assertIsNone(klass.API_VERSION)

def test_ctor_defaults(self):
conn = self._makeOne()
self.assertEqual(conn.credentials, None)
Expand Down

0 comments on commit 4baf1ec

Please sign in to comment.