Exemple #1
0
 def test_get_all_by_device_guid_calls_get_all_archives_from_value_with_expected_params(
         self, archive_service, archive_accessor_factory):
     archive = ArchiveClient(archive_accessor_factory, archive_service)
     for _ in archive.get_all_by_device_guid(TEST_DEVICE_GUID):
         pass
     archive_service.get_all_archives_from_value.assert_called_once_with(
         TEST_DEVICE_GUID, "backupSourceGuid")
Exemple #2
0
 def test_get_all_by_device_guid_calls_get_all_archives_from_value_with_expected_params(
         self, archive_service, archive_accessor_manager):
     device_guid = 42
     archive = ArchiveClient(archive_accessor_manager, archive_service)
     for _ in archive.get_all_by_device_guid(device_guid):
         pass
     archive_service.get_all_archives_from_value.assert_called_once_with(
         device_guid, u"backupSourceGuid")