Beispiel #1
0
 def test_dualPath(self):
     self.assertEqual(
         len(SdoTermSource.getParentPathTo("Restaurant", "Thing")), 2,
         "2 supertype paths from Restaurant to Thing.")
Beispiel #2
0
 def test_inverseDualPath(self):
     self.assertEqual(
         len(SdoTermSource.getParentPathTo("Thing", "Restaurant")), 0,
         "0 supertype paths from Thing to Restaurant.")
Beispiel #3
0
 def test_simplePath(self):
     self.assertEqual(
         len(SdoTermSource.getParentPathTo("CreativeWork", "Thing")), 1,
         "1 supertype path from CreativeWork to Thing.")