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')
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)
def test00(self): '''Find a tool shapee from file name''' path = PathToolBit.findShape('endmill.fcstd') self.assertIsNot(path, None) self.assertNotEqual(path, 'endmill.fcstd')