async def test_delete(self):
    (await (await IntFields.get(intnum=40)).delete())
    with self.assertRaises(DoesNotExist):
        (await IntFields.get(intnum=40))
    self.assertEqual((await IntFields.all().count()), 29)
    rows_affected = (await IntFields.all().order_by('intnum').limit(10).filter(intnum__gte=70).delete())
    self.assertEqual(rows_affected, 10)
    self.assertEqual((await IntFields.all().count()), 19)
async def test_delete(self):
    (await (await IntFields.get(intnum=40)).delete())
    with self.assertRaises(DoesNotExist):
        (await IntFields.get(intnum=40))
    self.assertEqual((await IntFields.all().count()), 29)
    rows_affected = (await IntFields.all().order_by('intnum').limit(10).filter(intnum__gte=70).delete())
    self.assertEqual(rows_affected, 10)
    self.assertEqual((await IntFields.all().count()), 19)