Testing for hypergeometric distribution assumption in log rank test

When using log rank test, there is assumption made on the observations of subjects having reached intended event to be hypergeometric.
Is there a way to test this assumption whether it holds true or not and how can this test be done in R or Python given a dataset that has the subjects from two cohorts and status of whether they have reached event or censored. Thank you.