def test_serialize_error(self):

        class badType(object):
            """I am a bad actor"""

        broken = badType()

        nt.assert_raises(LoadError, Data.serialize, broken)
Test serialization error
dataset/ETHPy150Open wrobstory/vincent/tests/test_vega.py/TestData.test_serialize_error