          q_str = pickle.dumps(qs.query)
          q = pickle.loads(q_str)
          self.assertEqual(GeoQuery, q.__class__)
  
      def test12_count(self):
          "Testing `Count` aggregate use with the `GeoManager`. See #11087."
          # Creating a new City, 'Fort Worth', that uses the same location
          # as Dallas.
          dallas = City.objects.get(name='Dallas')
          ftworth = City.objects.create(name='Fort Worth', state='TX', location=dallas.location)
          
 
</s>
    # 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."
          q_str = pickle.dumps(qs.query)
          q = pickle.loads(q_str)
          self.assertEqual(GeoQuery, q.__class__)
  
    # 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."
    # 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."
          # Creating a new City, 'Fort Worth', that uses the same location
          # as Dallas.
          dallas = City.objects.get(name='Dallas')
          ftworth = City.objects.create(name='Fort Worth', state='TX', location=dallas.location)
          
keep keep keep keep replace replace keep 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