Exemple #1
0
 def test_bad(self):
     with pytest.raises(AttributeError):
         gofplots._check_for("junk", "ppf")
     with pytest.raises(AttributeError):
         gofplots._check_for("junk", "cdf")
Exemple #2
0
 def test_good(self):
     gofplots._check_for(stats.norm, "ppf")
     gofplots._check_for(stats.norm, "cdf")