                  ["<Author: Foo>"], ordered=False)
  
      def test_bilateral_inner_qs(self):
          with register_lookup(models.CharField, UpperBilateralTransform):
              with self.assertRaises(NotImplementedError):
                  Author.objects.filter(name__upper__in=Author.objects.values_list('name'))
  
      def test_bilateral_multi_value(self):
          with register_lookup(models.CharField, UpperBilateralTransform):
              Author.objects.bulk_create([
 
</s> remove         with self.assertRaises(NotImplementedError):
 </s> add         with self.assertRaisesMessage(NotImplementedError, msg): </s> remove         with self.assertRaises(NotImplementedError):
 </s> add         msg = 'annotate() + distinct(fields) is not implemented.'
        with self.assertRaisesMessage(NotImplementedError, msg): </s> remove             with self.assertRaises(transaction.TransactionManagementError):
 </s> add             with self.assertRaisesMessage(transaction.TransactionManagementError, self.forbidden_atomic_msg): </s> remove             with self.assertRaises(transaction.TransactionManagementError):
 </s> add             with self.assertRaisesMessage(transaction.TransactionManagementError, self.forbidden_atomic_msg): </s> remove             with self.assertRaises(transaction.TransactionManagementError):
 </s> add             with self.assertRaisesMessage(transaction.TransactionManagementError, self.forbidden_atomic_msg):
            msg = 'Bilateral transformations on nested querysets are not supported.'
            with self.assertRaisesMessage(NotImplementedError, msg):
                  ["<Author: Foo>"], ordered=False)
  
      def test_bilateral_inner_qs(self):
          with register_lookup(models.CharField, UpperBilateralTransform):
            msg = 'Bilateral transformations on nested querysets are not supported.'
            with self.assertRaisesMessage(NotImplementedError, msg):
                  Author.objects.filter(name__upper__in=Author.objects.values_list('name'))
  
      def test_bilateral_multi_value(self):
          with register_lookup(models.CharField, UpperBilateralTransform):
              Author.objects.bulk_create([
keep keep keep keep replace keep keep keep keep keep
 Used assertRaisesMessage() to test Django's error messages. 
tests/custom_lookups/tests.py