'Test the error message that should be called when bw is invalid.'

def test_wrong_bw_method(self):

    np.random.seed(8765678)
    n_basesample = 50
    data = np.random.randn(n_basesample)
    with pytest.raises(ValueError):
        mlab.GaussianKDE(data, bw_method=u'invalid')
