Example #1
0
 def test_default_arguments(self):
     """
     :func:`get_all_server_details` called with arguments will use a default
     batch size.
     """
     self.assertEqual(get_all_server_details().intent,
                      service_request(**svc_request_args(limit=100)).intent)
Example #2
0
 def test_default_arguments(self):
     """
     :func:`get_all_server_details` called with arguments will use a default
     batch size.
     """
     self.assertEqual(get_all_server_details().intent,
                      service_request(**svc_request_args(limit=100)).intent)
Example #3
0
 def test_respects_batch_size_and_changes_since(self):
     """
     :func:`get_all_server_details` will respect the changes since and
     batch size arguments, and convert changes-since to an ISO8601 zulu
     format.
     """
     since = datetime(2010, 10, 10, 10, 10, 0)
     self.assertEqual(
         get_all_server_details(batch_size=10, changes_since=since).intent,
         service_request(
             **svc_request_args(limit=10, changes_since=since)).intent)
Example #4
0
 def test_respects_batch_size_and_changes_since(self):
     """
     :func:`get_all_server_details` will respect the changes since and
     batch size arguments, and convert changes-since to an ISO8601 zulu
     format.
     """
     since = datetime(2010, 10, 10, 10, 10, 0)
     self.assertEqual(
         get_all_server_details(batch_size=10, changes_since=since).intent,
         service_request(**svc_request_args(limit=10, changes_since=since)).intent,
     )