Пример #1
0
 def test_nat_earth_resolution_fail(self):
     """Wrong resolution."""
     with self.assertRaises(ValueError):
         nat_earth_resolution(11)
     with self.assertRaises(ValueError):
         nat_earth_resolution(51)
     with self.assertRaises(ValueError):
         nat_earth_resolution(111)
Пример #2
0
 def test_nat_earth_resolution_pass(self):
     """Correct resolution."""
     self.assertEqual(nat_earth_resolution(10), '10m')
     self.assertEqual(nat_earth_resolution(50), '50m')
     self.assertEqual(nat_earth_resolution(110), '110m')