Exemplo n.º 1
0
class TestZeissParser(unittest.TestCase):
    def setUp(self):
        testdata = "   0076                 576  A28    X       72.702 Y       -92.823 Z   156.620 "
        self.fp = FormatParser(testdata)

    def test_zeiss(self):
        assert self.fp.is_point(self.fp.data) == True
        assert self.fp.points[0][2] == "72.702"
        assert len(self.fp.points) == 1
Exemplo n.º 2
0
class TestZeissParser(unittest.TestCase):
    def setUp(self):
        testdata = '   0076                 576  A28    X       72.702 Y       -92.823 Z   156.620 '
        self.fp = FormatParser(testdata)

    def test_zeiss(self):
        assert self.fp.is_point(self.fp.data) == True
        assert self.fp.points[0][2] == '72.702'
        assert len(self.fp.points) == 1
Exemplo n.º 3
0
class TestZeissParser(unittest.TestCase):

    def setUp(self):
        testdata = '   0076                 576  A28    X       72.702 Y       -92.823 Z   156.620 '
        self.fp = FormatParser(testdata)

    def test_zeiss(self):
        self.assertTrue(self.fp.is_point(self.fp.data))
        self.assertEqual(self.fp.points[0].geometry.y, 72.702)
        self.assertEqual(self.fp.points[0].geometry.x, -92.823)
        self.assertEqual(len(self.fp.points), 1)
Exemplo n.º 4
0
class TestZeissParser(unittest.TestCase):

    def setUp(self):
        testdata = '   0076                 576  A28    X       72.702 Y       -92.823 Z   156.620 '
        self.fp = FormatParser(testdata)

    def test_zeiss(self):
        self.assertTrue(self.fp.is_point(self.fp.data))
        self.assertEqual(self.fp.points[0].geometry.y, 72.702)
        self.assertEqual(self.fp.points[0].geometry.x, -92.823)
        self.assertEqual(len(self.fp.points), 1)