def test_grammar_typechecking(self):

        grammar_types = [('name', [str]),
                         ('width', [int]),
                         ('height', [int]),
                         ('data', [list, KeyedList]),
                         ('scales', [list, KeyedList]),
                         ('axes', [list, KeyedList]),
                         ('marks', [list, KeyedList])]

        assert_grammar_typechecking(grammar_types, Visualization())
Visualization fields are correctly type checked
dataset/ETHPy150Open wrobstory/vincent/tests/test_vega.py/TestVisualization.test_grammar_typechecking