Skip to content

Commit fb1d90f

Browse files
author
Alex Schworer
committed
Use assertTrue instead of assertGreater in tests.
The `unittest` module in py2.6 does not have assertGreater.
1 parent 0479f96 commit fb1d90f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/test_jobs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_job_create(self, post):
1616
resp = self.zen.job.create('s3://zencodertesting/test.mov')
1717

1818
self.assertEquals(resp.code, 201)
19-
self.assertGreater(resp.body['id'], 0)
19+
self.assertTrue(resp.body['id'] > 0)
2020
self.assertEquals(len(resp.body['outputs']), 1)
2121

2222
@patch("requests.Session.get")
@@ -25,7 +25,7 @@ def test_job_details(self, get):
2525

2626
resp = self.zen.job.details(1234)
2727
self.assertEquals(resp.code, 200)
28-
self.assertGreater(resp.body['job']['id'], 0)
28+
self.assertTrue(resp.body['job']['id'] > 0)
2929
self.assertEquals(len(resp.body['job']['output_media_files']), 1)
3030

3131
@patch("requests.Session.get")

test/test_outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_output_details(self, get):
1616

1717
resp = self.zen.output.details(22222)
1818
self.assertEquals(resp.code, 200)
19-
self.assertGreater(resp.body['id'], 0)
19+
self.assertTrue(resp.body['id'] > 0)
2020

2121
@patch("requests.Session.get")
2222
def test_output_progress(self, get):

0 commit comments

Comments
 (0)