def METHOD_NAME(self, patched_to_datetime, patched_to_timestamp, patched_time):
    start_time = Mock()
    given_start_time = 5
    patched_to_timestamp.return_value = 5
    with patch.object(self.xray_service_graph_puller, "_had_data") as patched_had_data:
        patched_had_data.side_effect = [True, False]
        with patch.object(self.xray_service_graph_puller, "load_time_period") as patched_load_time_period:
            self.xray_service_graph_puller.tail(start_time)
            patched_to_timestamp.assert_called_with(start_time)
            patched_to_datetime.assert_has_calls(
                [
                    call(given_start_time),
                ],
                any_order=True,
            )
            patched_to_datetime.assert_has_calls([call(given_start_time + 1) for _ in range(self.max_retries)])
            patched_time.sleep.assert_has_calls(
                [call(self.xray_service_graph_puller._poll_interval) for _ in range(self.max_retries + 1)]
            )
            patched_load_time_period.assert_has_calls([call(ANY, ANY) for _ in range(self.max_retries + 1)])