def test_serialize_11(self): sz = serializer.TroveSerializer(base=None) self.assertEqual(sz.serialize_context(self.context), self.context)
def test_serialize_10(self): sz = serializer.TroveSerializer(base=None) self.assertEqual(sz.deserialize_entity(self.context, self.data), self.data)
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)
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)
def test_serialize_16(self): bz = serializer.TroveSerializer(base=None) sz = serializer.TroveSerializer(base=bz) self.assertEqual(sz.deserialize_context(self.context), self.context)