diff --git a/async_tests/test_async_ldap_model.py b/async_tests/test_async_ldap_model.py index 58e1f88..363c2ff 100644 --- a/async_tests/test_async_ldap_model.py +++ b/async_tests/test_async_ldap_model.py @@ -731,6 +731,20 @@ async def test_Service_create_not_existing(client_fixture): assert client_fixture.called_with_args["search"]["args"] == (s.dn, 0) +@pytest.mark.asyncio +async def test_Service_sync_existing(client_fixture): + s = Service("existing_service", client_fixture) + + await s.sync() + + assert client_fixture.called_with_args["search"]["args"] == (s.dn, 0) + + +@pytest.mark.asyncio +async def test_Service_sync_non_existing(client_fixture): + pass + + def test_Group(client_fixture): c = Group("amici_miei", client_fixture)