def test_default(self): default = Personal() out = default.save().getvalue() new = Personal() new.load(BinaryIO(out)) self.assertEqual(out, new.save().getvalue())
def test_gen5(self): default = Personal(version=Personal.BLACK) out = default.save().getvalue() new = Personal(version=Personal.BLACK) new.load(BinaryIO(out)) self.assertEqual(out, new.save().getvalue())