Exemple #1
0
 def test_country_assignment_for_invalid_geometry(self):
     load_countries.run()
     project = ProjectFactory.create(extent='SRID=4326;POLYGON(('
                                     '0.00000 0.00000, '
                                     '0.00001 0.00000, '
                                     '0.00001 0.00001, '
                                     '0.00000 0.00001, '
                                     '0.00000 0.00000))')
     assert project.country == ''
Exemple #2
0
 def test_country_assignment(self):
     load_countries.run()
     project = ProjectFactory.create(extent='SRID=4326;POLYGON(('
                                     '11.36667 47.25000, '
                                     '11.41667 47.25000, '
                                     '11.41667 47.28333, '
                                     '11.36667 47.28333, '
                                     '11.36667 47.25000))')
     assert project.country == 'AT'
 def test_country_assignment_for_invalid_geometry(self):
     load_countries.run()
     project = ProjectFactory.create(
         extent='SRID=4326;POLYGON(('
         '0.00000 0.00000, '
         '0.00001 0.00000, '
         '0.00001 0.00001, '
         '0.00000 0.00001, '
         '0.00000 0.00000))'
     )
     assert project.country == ''
 def test_country_assignment(self):
     load_countries.run()
     project = ProjectFactory.create(
         extent='SRID=4326;POLYGON(('
         '11.36667 47.25000, '
         '11.41667 47.25000, '
         '11.41667 47.28333, '
         '11.36667 47.28333, '
         '11.36667 47.25000))'
     )
     assert project.country == 'AT'