def METHOD_NAME(self):
    akamai_backend = AkamaiBackend(self.credentials)
    with mock.patch.object(AkamaiBackend, "post_tags") as mock_post_tags:
        akamai_backend.purge_by_tags(["test_slug"], action="invalidate")
    mock_post_tags.assert_called_once_with(
        ["test_slug"], action="invalidate"
    )