Skip to content

Commit

Permalink
added test for header.
Browse files Browse the repository at this point in the history
  • Loading branch information
rawstorage committed Oct 22, 2019
1 parent 916c725 commit 67d84e9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_pyu4v.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,15 @@ def _get_request(self, url, params):

return status_code, return_object

def _establish_rest_session(self):
ref_headers = {'content-type': 'application/json',
'accept': 'application/json',
'application-type': 'pyu4v'}
self.assertEqual(ref_headers, self.rest.session.headers)
self.assertEqual('smc', self.rest.session.auth.username)
self.assertEqual('smc', self.rest.session.auth.password)
self.assertEqual(False, self.rest.session.verify)

def _sloprovisioning_volume(self, url, params):
return_object = self.data.volume_list[2]
if params:
Expand Down

0 comments on commit 67d84e9

Please sign in to comment.