'NotSupportedError is raised if a SELECT...FOR UPDATE OF... is run on
a database backend that supports FOR UPDATE but not OF.'

@skipIfDBFeature('has_select_for_update_of')
@skipUnlessDBFeature('has_select_for_update')
def test_unsupported_of_raises_error(self):

    msg = 'FOR    UPDATE    OF    is    not    supported    on    this    database    backend.'
    with self.assertRaisesMessage(NotSupportedError, msg):
        with transaction.atomic():
            Person.objects.select_for_update(of=('self',)).get()
