Beispiel #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
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
Beispiel #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)
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)
Beispiel #5
0
 def setup(self):
     with open('sample_data/zeiss_elta_r55/zeiss_elta_r55-REC_500.tops') as testdata:
         self.fp = FormatParser(testdata.read())
Beispiel #6
0
 def setUp(self):
     testdata = 'END'
     self.fp = FormatParser(testdata)
Beispiel #7
0
 def setUp(self):
     testdata = '   0076             576  A28    X       72.702 Y       -92.823 Z   156.620 '
     self.fp = FormatParser(testdata)
 def setUp(self):
     testdata = '   0076                 576  A28    X       72.702 Y       -92.823 Z   156.620 '
     self.fp = FormatParser(testdata)