          self.assertEqual(2, loc.num_cities)
  
          # Creating some data for the Book/Author non-geo models that
          # use GeoManager.  See #11087.
          tp = Author.objects.create(name='Trevor Paglen')
          Book.objects.create(title='Torture Taxi', author=tp)
 
</s> remove     def test12_count(self):
        "Testing `Count` aggregate use with the `GeoManager`. See #11087."
 </s> add     # TODO: fix on Oracle -- get the following error because the SQL is ordered
    # by a geometry object, which Oracle apparently doesn't like:
    #  ORA-22901: cannot compare nested table or VARRAY or LOB attributes of an object type
    @no_oracle
    def test12a_count(self):
        "Testing `Count` aggregate use with the `GeoManager` on geo-fields." </s> remove         # the annotation should have 3 for the number of books.
 </s> add         # the annotation should have 3 for the number of books.  Also testing
        # with a `GeoValuesQuerySet` (see #11489).
    def test12b_count(self):
        "Testing `Count` aggregate use with the `GeoManager` on non geo-fields. See #11087."
          self.assertEqual(2, loc.num_cities)
  
    def test12b_count(self):
        "Testing `Count` aggregate use with the `GeoManager` on non geo-fields. See #11087."
          # Creating some data for the Book/Author non-geo models that
          # use GeoManager.  See #11087.
          tp = Author.objects.create(name='Trevor Paglen')
          Book.objects.create(title='Torture Taxi', author=tp)
keep add keep keep keep keep
 Fixed #11489 -- `GeoQuery.resolve_columns` now recognizes annotations; disabled problematic test cases on Oracle and added notes on why.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@11251 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/gis/tests/relatedapp/tests.py