class_docstr: Test distribution.py.
docstr: Test function test_homoscedasticity.
docstr_tok: ["Test","function","test_homoscedasticity","."]
code: def test_homoscedasticity(self):
      """Test function test_homoscedasticity."""
      hl = homoscedasticity(data=[x, y], alpha=0.05)
      homoscedasticity(data=[x, y], method="bartlett", alpha=0.05)
      hd = homoscedasticity(data={"x": x, "y": y}, alpha=0.05)
      hd2 = homoscedasticity(
          data={"x": x, "y": y}, alpha=0.05, center="mean"
      )
      assert hl.equals(hd)
      assert not hd.equals(hd2)
      # Wide-format DataFrame
      homoscedasticity(df_pivot)
      # Long-format
      homoscedasticity(df, dv="Scores", group="Time")
  
file_path: pingouin/pingouin/tests/test_distribution.py
imports: import pytest
  import numpy
  import pandas
  from unittest import TestCase
  from pingouin.distribution import gzscore, normality, anderson, epsilon, homoscedasticity, sphericity
  from pingouin import read_dataset
label_desc: Use image node_id 3 for calling the TestDistribution obj's underlying member method code with example usage: obj.test_homoscedasticity() without return types