Ejemplo n.º 1
0
    def test_digitize_points(self):
        ''' shall return empty array in non interactive mode '''
        plt.ion()
        n1 = Nansat(self.test_file_gcps, logLevel=40)
        points = n1.digitize_points(1)

        self.assertEqual(len(points), 0)
        plt.ioff()
Ejemplo n.º 2
0
 def test_digitize_points(self, mock_PointBrowser):
     """ shall create PointBrowser and call PointBrowser.get_points() """
     value = 'points'
     mock_PointBrowser().get_points.return_value = value
     n = Nansat(self.test_file_gcps, log_level=40, mapper=self.default_mapper)
     points = n.digitize_points(1)
     self.assertTrue(mock_PointBrowser.called_once())
     self.assertEqual(points, value)
Ejemplo n.º 3
0
    def test_digitize_points(self):
        ''' shall return empty array in non interactive mode '''
        plt.ion()
        n1 = Nansat(self.test_file_gcps, logLevel=40)
        points = n1.digitize_points(1)

        self.assertEqual(len(points), 0)
        plt.ioff()