Beispiel #1
0
 def test04(self):
     '''Find a tool shape from a valid absolute path.'''
     path = PathToolBit.findToolShape(testToolShape())
     self.assertIsNot(path, None)
     self.assertEqual(path, testToolShape())
Beispiel #2
0
 def test03(self):
     '''Not find a tool shape from an invalid absolute path.'''
     path = PathToolBit.findToolShape(testToolShape(TestInvalidDir))
     self.assertIsNone(path)
Beispiel #3
0
 def test02(self):
     '''Find a relative path shape if it's local to a bit path'''
     path = PathToolBit.findToolShape(TestToolShapeName, testToolBit())
     self.assertIsNot(path, None)
     self.assertEqual(path, testToolShape())
Beispiel #4
0
 def test01(self):
     '''Not find a relative path shape if not stored in default location'''
     path = PathToolBit.findToolShape(TestToolShapeName)
     self.assertIsNone(path)
Beispiel #5
0
 def test00(self):
     '''Find a tool shape from file name'''
     path = PathToolBit.findToolShape('endmill.fcstd')
     self.assertIsNot(path, None)
     self.assertNotEqual(path, 'endmill.fcstd')
Beispiel #6
0
 def test00(self):
     """Find a tool shape from file name"""
     path = PathToolBit.findToolShape("endmill.fcstd")
     self.assertIsNot(path, None)
     self.assertNotEqual(path, "endmill.fcstd")