Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samithaliyanage committed May 2, 2018
1 parent a81e8a9 commit 9c85b85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_htrc_volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_get_volumes_and_pages(self, https_mock):
''.encode('utf8')
https_mock.return_value.getresponse.return_value = response_mock

htrc.volumes.get_volumes('1234', self.test_vols, 'data-host', '443')
htrc.volumes.get_volumes('1234', self.test_vols, 'data-host', '443', '/home/client-certs/client.pem', '/home/client-certs/client.pem', '/' )
htrc.volumes.get_pages('1234', self.test_vols)

@patch('htrc.volumes.http.client.HTTPSConnection')
Expand All @@ -70,14 +70,14 @@ def test_get_volumes_and_pages_error(self, https_mock):
https_mock.return_value.getresponse.return_value = response_mock

with self.assertRaises(EnvironmentError):
htrc.volumes.get_volumes('1234', self.test_vols, 'data-host', '443')
htrc.volumes.get_volumes('1234', self.test_vols, 'data-host', '443', '/home/client-certs/client.pem', '/home/client-certs/client.pem', '/' )

with self.assertRaises(EnvironmentError):
htrc.volumes.get_pages('1234', self.test_vols)

def test_get_volumes_and_pages_empty(self):
with self.assertRaises(ValueError):
htrc.volumes.get_volumes('1234', [], 'data-host', '443')
htrc.volumes.get_volumes('1234', [], 'data-host', '443', '/home/client-certs/client.pem', '/home/client-certs/client.pem', '/' )

with self.assertRaises(ValueError):
htrc.volumes.get_pages('1234', [])
Expand Down

0 comments on commit 9c85b85

Please sign in to comment.