Update inquiry unit test
@@ -166,16 +166,16 @@ class TestInquirySubcommands(TestInquiryBase):
@mock.patch.object(
requests, 'get',
mock.MagicMock(return_value=(base.FakeResponse(
- json.dumps(_generate_inquiries(22)), 200, 'OK', {'X-Total-Count': '25'}
+ json.dumps(_generate_inquiries(50)), 200, 'OK', {'X-Total-Count': '55'}
))))
def test_list_inquiries_limit(self):
"""Test retrieval of a list of Inquiries while using the "limit" option
"""
- args = ['inquiry', 'list', '-n', '22']
+ args = ['inquiry', 'list', '-n', '50']
retcode = self.shell.run(args)
self.assertEqual(retcode, 0)
- self.assertEqual(self.stdout.getvalue().count('1440'), 22)
- self.assertTrue('Note: Only first 22 inquiries are displayed.' in self.stderr.getvalue())
+ self.assertEqual(self.stdout.getvalue().count('1440'), 50)
+ self.assertTrue('Note: Only first 50 inquiries are displayed.' in self.stderr.getvalue())
@mock.patch.object(
requests, 'get',
