def test_make_file_with_content(self):
        """Make file with contentblob.

        This is similar to the way the updown server creates a file. But it's
        all handled in one function after the upload.
        """
        name = 'filename'
        hash = self.factory.get_fake_hash()
        storage_key = uuid.uuid4()
        crc = 12345
        size = 100
        deflated_size = 1
        magic_hash = b'magic_hash'
        node = self.vgw.make_file_with_content(
            self.root.id, name, hash, crc, size, deflated_size,
            storage_key, mimetype='image/tif', magic_hash=magic_hash)
        a_file = self.vgw.get_node(node.id, with_content=True)
        self.assertEqual(a_file.name, 'filename')
        self.assertEqual(a_file.mimetype, 'image/tif')
        self.assertEqual(a_file.status, STATUS_LIVE)
        self.assertEqual(a_file.content.hash, hash)
        self.assertEqual(a_file.content.crc32, crc)
        self.assertEqual(a_file.content.size, size)
        self.assertEqual(a_file.content.deflated_size, deflated_size)
        self.assertEqual(a_file.content.storage_key, storage_key)
        self.assertEqual(a_file.content.magic_hash, magic_hash)