test_gis.py 470 B

123456789101112131415161718192021222324
  1. """
  2. @author:Luca Delucchi
  3. """
  4. from grass.gunittest.case import TestCase
  5. from grass.gunittest.main import test
  6. from grass.pygrass.gis.region import Region
  7. class RegionTestCase(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()