def test_make_content_updates_contentblob(self):
        """Contentblob is updated if needed when making content."""
        filenode = self.vgw.make_file(self.root.id, 'the file name')
        new_hash = self.factory.get_fake_hash()
        new_storage_key = uuid.uuid4()
        crc = 12345
        size = 100
        def_size = 10000
        magic_hash = b'magic_hash'

        # call it without the magic hash, as before
        n = self.vgw.make_content(filenode.id, filenode.content_hash, new_hash,
                                  crc, size, def_size, new_storage_key)
        assert n.content.magic_hash is None

        # call it with the magic hash
        n = self.vgw.make_content(filenode.id, new_hash, new_hash, crc, size,
                                  def_size, new_storage_key, magic_hash)
        assert n.content.magic_hash == magic_hash

        # reload the file and make sure it was stored ok
        filenode._load(with_content=True)
        self.assertEqual(filenode.content.magic_hash, magic_hash)