Esempio n. 1
0
 def test_default(self):
     default = Personal()
     out = default.save().getvalue()
     new = Personal()
     new.load(BinaryIO(out))
     self.assertEqual(out, new.save().getvalue())
Esempio n. 2
0
 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())