def test_make_file_with_magic(self):
        """Test make_file method."""
        cb = self.factory.make_content_blob(
            content='FakeContent', magic_hash=b'magic')
        # make enough room
        self.tweak_users_quota(self.owner, cb.deflated_size)
        node = self.vgw.make_file(self.root.id, 'the file name',
                                  hash=cb.hash, magic_hash=cb.magic_hash)
        self.assertEqual(node.content_hash, cb.hash)