async def METHOD_NAME(self):
    category = Case(When(intnum__gte=8, then="big"), default="default")
    sql = IntFields.all().annotate(category=category).values("intnum", "category").sql()
    dialect = self.db.schema_generator.DIALECT
    if dialect == "mysql":
        expected_sql = "SELECT `intnum` `intnum`,CASE WHEN `intnum`>=8 THEN 'big' ELSE 'default' END `category` FROM `intfields`"
    else:
        expected_sql = 'SELECT "intnum" "intnum",CASE WHEN "intnum">=8 THEN \'big\' ELSE \'default\' END "category" FROM "intfields"'
    self.assertEqual(sql, expected_sql)