test_gis.py 450 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. """
  3. Luca Delucchi
  4. """
  5. from grass.gunittest import TestCase, test
  6. from grass.pygrass.gis.region import Region
  7. class RegionTestCate(TestCase):
  8. def test_bounds(self):
  9. reg1 = Region()
  10. reg2 = Region()
  11. self.assertTrue(reg1, reg2)
  12. north = reg2.north
  13. reg2.north = 0
  14. self.assertNotEqual(reg1.north, reg2.north)
  15. reg2.north = north
  16. if __name__ == '__main__':
  17. test()