You can simply add

```python
if not scipy.sparse.issparse(X): 
    raise TypeError("from_scipy_sparse_dataset is not sparse : %s" % type(from_scipy_sparse_dataset))
```
It will probably raise an error in ```test_training_a_model```. Just remove todense() at line 36.