Example #1
0
 def test_get_by_archive_guid_calls_get_single_archive_with_expected_params(
         self, archive_service, archive_accessor_manager):
     archive_guid = 42
     archive = ArchiveClient(archive_accessor_manager, archive_service)
     archive.get_by_archive_guid(archive_guid)
     archive_service.get_single_archive.assert_called_once_with(
         archive_guid)
Example #2
0
 def test_get_by_archive_guid_calls_get_single_archive_with_expected_params(
     self, archive_service, archive_accessor_factory
 ):
     archive = ArchiveClient(archive_accessor_factory, archive_service)
     archive.get_by_archive_guid(TEST_ARCHIVE_GUID)
     archive_service.get_single_archive.assert_called_once_with(TEST_ARCHIVE_GUID)