def test04(self): '''Find a tool shape from a valid absolute path.''' path = PathToolBit.findToolShape(testToolShape()) self.assertIsNot(path, None) self.assertEqual(path, testToolShape())
def test03(self): '''Not find a tool shape from an invalid absolute path.''' path = PathToolBit.findToolShape(testToolShape(TestInvalidDir)) self.assertIsNone(path)
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())
def test01(self): '''Not find a relative path shape if not stored in default location''' path = PathToolBit.findToolShape(TestToolShapeName) self.assertIsNone(path)
def test00(self): '''Find a tool shape from file name''' path = PathToolBit.findToolShape('endmill.fcstd') self.assertIsNot(path, None) self.assertNotEqual(path, 'endmill.fcstd')
def test00(self): """Find a tool shape from file name""" path = PathToolBit.findToolShape("endmill.fcstd") self.assertIsNot(path, None) self.assertNotEqual(path, "endmill.fcstd")