Example #1
0
 def test_serialize_11(self):
     sz = serializer.TroveSerializer(base=None)
     self.assertEqual(sz.serialize_context(self.context), self.context)
Example #2
0
 def test_serialize_10(self):
     sz = serializer.TroveSerializer(base=None)
     self.assertEqual(sz.deserialize_entity(self.context, self.data),
                      self.data)
Example #3
0
 def test_serialize_4(self):
     base = mock.Mock()
     sz1 = serializer.TroveSerializer(base=base)
     sz = serializer.TroveSerializer(base=sz1)
     sz.deserialize_entity(self.context, self.data)
     base.deserialize_entity.assert_called_with(self.context, self.data)
Example #4
0
 def test_serialize_8(self):
     base = mock.Mock()
     sz1 = serializer.TroveSerializer(base=base)
     sz = serializer.TroveSerializer(base=sz1)
     sz.deserialize_context(self.context)
     base.deserialize_context.assert_called_with(self.context)
Example #5
0
 def test_serialize_16(self):
     bz = serializer.TroveSerializer(base=None)
     sz = serializer.TroveSerializer(base=bz)
     self.assertEqual(sz.deserialize_context(self.context), self.context)