async def test_modify_dataset(self):
    rows_affected = (await IntFields.filter(intnum__gte=70).update(intnum_null=80))
    self.assertEqual(rows_affected, 10)
    self.assertEqual((await IntFields.filter(intnum_null=80).count()), 10)
    self.assertEqual((await IntFields.filter(intnum_null__isnull=True).count()), 20)
    (await IntFields.filter(intnum_null__isnull=True).update(intnum_null=(- 1)))
    self.assertEqual((await IntFields.filter(intnum_null=None).count()), 0)
    self.assertEqual((await IntFields.filter(intnum_null=(- 1)).count()), 20)
async def test_modify_dataset(self):
    rows_affected = (await IntFields.filter(intnum__gte=70).update(intnum_null=80))
    self.assertEqual(rows_affected, 10)
    self.assertEqual((await IntFields.filter(intnum_null=80).count()), 10)
    self.assertEqual((await IntFields.filter(intnum_null__isnull=True).count()), 20)
    (await IntFields.filter(intnum_null__isnull=True).update(intnum_null=(- 1)))
    self.assertEqual((await IntFields.filter(intnum_null=None).count()), 0)
    self.assertEqual((await IntFields.filter(intnum_null=(- 1)).count()), 20)