def test_serialiseFromCF(self):
     """ Test round trip serialisation of material from the CF
     contents """
     tmp = cd.simpleCollection()
     tmp.create_from_disk(self.datadir)
     s = tmp.serialise()
     print s
     y = cd.simpleSerialiser(cd.simpleChecker)
     tmp2 = y.deserialise(s)
     self.assertEqual(tmp, tmp2)
 def test_serialise1(self):
     """ test roundtrip serialisation of an easy simpleCollection """
     s = self.dummysc.serialise()
     y = cd.simpleSerialiser(cd.simpleChecker)
     s2 = y.deserialise(s)
     self.assertEqual(self.dummysc, s2)