3e5ea713ccf9a51ec85c0c71d7b91fe1c04d0c3b,scipy/stats/tests/test_stats.py,TestDescribe,test_describe_result_attributes,#TestDescribe#,2380
Before Change
actual = stats.describe(np.arange(5))
attributes = ("nobs", "minmax", "mean", "variance", "skewness",
"kurtosis")
for i, attr in enumerate(attributes):
assert_equal(actual[i], getattr(actual, attr))
// Same as `test_describe_result_attributes` but accessing the atributes
// explicitly and separately by name.
def test_describe_result_attributes_names(self):
actual = stats.describe(np.arange(5))
assert_equal(actual.nobs, getattr(actual, "nobs"))
assert_equal(actual.minmax, getattr(actual, "minmax"))
After Change
actual = stats.describe(np.arange(5))
attributes = ("nobs", "minmax", "mean", "variance", "skewness",
"kurtosis")
check_named_results(actual, attributes)
def test_normalitytests():
yield (assert_raises, ValueError, stats.skewtest, 4.)
yield (assert_raises, ValueError, stats.kurtosistest, 4.)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: scipy/scipy
Commit Name: 3e5ea713ccf9a51ec85c0c71d7b91fe1c04d0c3b
Time: 2015-05-04
Author: aeklant@gmail.com
File Name: scipy/stats/tests/test_stats.py
Class Name: TestDescribe
Method Name: test_describe_result_attributes
Project Name: scipy/scipy
Commit Name: 3d060c2f7e3d6f47baea3a2710dc1eca5087499f
Time: 2015-05-04
Author: aeklant@gmail.com
File Name: scipy/stats/tests/test_mstats_basic.py
Class Name: TestCompareWithStats
Method Name: test_describe_result_attributes
Project Name: scipy/scipy
Commit Name: 3e5ea713ccf9a51ec85c0c71d7b91fe1c04d0c3b
Time: 2015-05-04
Author: aeklant@gmail.com
File Name: scipy/stats/tests/test_mstats_basic.py
Class Name: TestMoments
Method Name: test_mode
Project Name: scipy/scipy
Commit Name: 3e5ea713ccf9a51ec85c0c71d7b91fe1c04d0c3b
Time: 2015-05-04
Author: aeklant@gmail.com
File Name: scipy/stats/tests/test_stats.py
Class Name: TestMode
Method Name: test_mode_result_attributes