[Key Vault] Refactor secrets test causing CI errors
@@ -181,6 +181,7 @@ class KeyVaultSecretTest(KeyVaultTestCase):
self.assertIsNotNone(deleted_secret.deleted_date)
self.assertIsNotNone(deleted_secret.scheduled_purge_date)
self.assertIsNotNone(deleted_secret.recovery_id)
+ if deleted_secret.name in expected:
expected_secret = expected[deleted_secret.name]
self._assert_secret_attributes_equal(expected_secret.properties, deleted_secret.properties)
