#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # Boilerplate #----------------------------------------------------------------------------- from __future__ import absolute_import, division, print_function, unicode_literals import pytest ; pytest #----------------------------------------------------------------------------- # Imports #----------------------------------------------------------------------------- # Standard library imports # External imports import pandas as pd # Bokeh imports from bokeh.util.testing import verify_all # Module under test #import bokeh.sampledata.mtb as bsm #----------------------------------------------------------------------------- # Setup #----------------------------------------------------------------------------- ALL = ( 'obiszow_mtb_xcm', ) #----------------------------------------------------------------------------- # General API #----------------------------------------------------------------------------- Test___all__ = pytest.mark.sampledata(verify_all("bokeh.sampledata.mtb", ALL)) @pytest.mark.sampledata def test_obiszow_mtb_xcm(): import bokeh.sampledata.mtb as bsm assert isinstance(bsm.obiszow_mtb_xcm, pd.DataFrame) # check detail for package data assert len(bsm.obiszow_mtb_xcm) == 978 #----------------------------------------------------------------------------- # Dev API #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # Private API #-----------------------------------------------------------------------------