def test_get_public_file_no_content(self):
        """Test get_public_file when file has no content."""
        file_dao = self.vgw.change_public_access(self.file.id, True)
        self.file.content_blob = None
        self.file.save()
        self.assertRaises(errors.DoesNotExist,
                          self.gw.get_public_file, file_dao.public_key)