Пример #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 == ''
Пример #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'
Пример #3
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 == ''
Пример #4
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'