コード例 #1
0
    def test01(self):
        '''Find a tool shapee from an invalid absolute path.'''

        path = PathToolBit.findShape(
            '/this/is/unlikely/a/valid/path/v-bit.fcstd')
        self.assertIsNot(path, None)
        self.assertNotEqual(path, '/this/is/unlikely/a/valid/path/v-bit.fcstd')
コード例 #2
0
 def test10(self):
     '''find the relative path of a tool bit'''
     shape = 'endmill.fcstd'
     path = PathToolBit.findShape(shape)
     self.assertIsNot(path, None)
     self.assertGreater(len(path), len(shape))
     rel = PathToolBit.findRelativePathShape(path)
     self.assertEqual(rel, shape)
コード例 #3
0
    def test00(self):
        '''Find a tool shapee from file name'''

        path = PathToolBit.findShape('endmill.fcstd')
        self.assertIsNot(path, None)
        self.assertNotEqual(path, 'endmill.fcstd')