Exemple #1
0
 def test_nearest_minimum_dz(self):
     """Test name generated when using the nearest neighbour with the
     smallest vertical displacment method."""
     plugin = NeighbourSelection(minimum_dz=True)
     expected = 'nearest_minimum_dz'
     result = plugin.neighbour_finding_method_name()
     self.assertEqual(result, expected)
Exemple #2
0
 def test_nearest(self):
     """Test name generated when using the default nearest neighbour
     method."""
     plugin = NeighbourSelection()
     expected = 'nearest'
     result = plugin.neighbour_finding_method_name()
     self.assertEqual(result, expected)
Exemple #3
0
 def test_nearest_land(self):
     """Test name generated when using the nearest land neighbour
     method."""
     plugin = NeighbourSelection(land_constraint=True)
     expected = 'nearest_land'
     result = plugin.neighbour_finding_method_name()
     self.assertEqual(result, expected)
Exemple #4
0
 def test_nearest_land_minimum_dz(self):
     """Test name generated when using the nearest land neighbour
     with smallest vertical displacment method."""
     plugin = NeighbourSelection(land_constraint=True, minimum_dz=True)
     expected = "nearest_land_minimum_dz"
     result = plugin.neighbour_finding_method_name()
     self.assertEqual(result, expected)