def test_base_frame_cant_serialize(self): f = Frame(0) with pytest.raises(NotImplementedError): f.serialize()