def test_asserts(self):
     with pytest.raises(AssertionError):
         kde_violin(self.samples, positions=[0])
     with pytest.raises(AssertionError):
         kde_violin(self.samples, positions=[0, 1, 2])
     with pytest.raises(AssertionError):
         kde_violin(self.samples, plot_kwargs=[{}, {}, {}])
     with pytest.raises(ValueError):
         kde_violin(self.samples, sigma=2, interval=[0.5, 2.5])
     with pytest.raises(ValueError):
         kde_violin(self.samples, sigma=None, interval=None)
 def test_sides_asserts(self):
     with pytest.raises(AssertionError):
         kde_violin(self.samples, sides="top", vertical_violins=True)
     with pytest.raises(AssertionError):
         kde_violin(self.samples, sides="left", vertical_violins=False)
     with pytest.raises(AssertionError):
         kde_violin(self.samples, sides="blag")
 def test_interval_kde(self):
     fig, ax = kde_violin(self.samples, sigma=None, interval=[0.5, 2.5])
     assert ax is not None
     assert fig is not None
 def test_smoke_kde(self):
     fig, ax = kde_violin(self.samples)
     assert ax is not None
     assert fig is not None
 def test_kde_with_kwarg_list(self):
     plot_kwargs = {"c": "k", "ls": ":"}
     plot_kwargs = [plot_kwargs] * len(self.dists)
     fig, ax = kde_violin(self.samples, plot_kwargs=plot_kwargs)
 def test_inner(self):
     with pytest.raises(AssertionError):
         kde_violin(self.dists, inner="blah")