Beispiel #1
0
    def test_versioncheck(self):
        f = tutils.tflow()
        d = f._get_state()
        d["version"] = (0, 0)
        sio = StringIO()
        tnetstring.dump(d, sio)
        sio.seek(0)

        r = flow.FlowReader(sio)
        tutils.raises("version", list, r.stream())
Beispiel #2
0
 def add(self, flow):
     d = flow.get_state()
     tnetstring.dump(d, self.fo)