def test_make_get_content(self):
        """Test the make and get content."""
        hash = self.factory.get_fake_hash()
        key = uuid.uuid4()
        crc = 12345
        size = 100
        def_size = 10000
        magic_hash = b'magic_hash'
        content = self.vgw._make_content(hash, crc, size, def_size, key,
                                         magic_hash)
        content = self.vgw.get_content(content.hash)
        self.assertEqual(content.hash, hash)
        self.assertEqual(content.crc32, crc)
        self.assertEqual(content.size, size)
        self.assertEqual(content.deflated_size, def_size)
        self.assertEqual(content.status, STATUS_LIVE)
        self.assertEqual(content.storage_key, key)
        self.assertEqual(content.magic_hash, magic_hash)

        # make it Dead
        ContentBlob.objects.filter(hash=hash).update(status=STATUS_DEAD)

        # dead content throws exception
        self.assertRaises(errors.DoesNotExist, self.vgw.get_content, hash)

        # IRL we should resurrect dead content? No we throw an exception!
        #    So we should NEVER set a content blob to Dead
        self.assertRaises(
            IntegrityError,
            self.vgw._make_content, hash, crc, size, def_size, key, magic_hash)