def test_grammar_typechecking(self):

        grammar_types = [('title', [str]),
                         ('title_offset', [int]),
                         ('grid', [bool]),
                         ('scale', [str]),
                         ('orient', [str]), ('format', [str]),
                         ('ticks', [int]), ('values', [list]),
                         ('subdivide', [int, float]),
                         ('tick_padding', [int]), ('tick_size', [int]),
                         ('tick_size_major', [int]),
                         ('tick_size_minor', [int]),
                         ('tick_size_end', [int]),
                         ('offset', [int]),
                         ('properties', [AxisProperties])]

        assert_grammar_typechecking(grammar_types, Axis())
Test grammar of Axis
dataset/ETHPy150Open wrobstory/vincent/tests/test_vega.py/TestAxis.test_grammar_typechecking