'Test that update changes the right number of rows for an empty queryset'

def test_empty_update(self):

    num_updated = self.a2.b_set.update(y=100)
    self.assertEqual(num_updated, 0)
    cnt = B.objects.filter(y=100).count()
    self.assertEqual(cnt, 0)
