test_gis.py 487 B

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