Example #1
0
    def testNodeContainerContainsTaggedNodeLinks(self):
        entries = self.node.entries

        for itemName in self._taggedItemNames:
            self.assertTrue(itemName in entries)

            validateLinkInterface(self, entries[itemName])
Example #2
0
    def testNodeContainerContainsTaggedNodeLinks(self):
        entries = self.node.entries

        for itemName in self._taggedItemNames:
            self.assertTrue(itemName in entries)

            validateLinkInterface(self, entries[itemName])
    def testUntaggedItemAccessItemsAreUntaggedItemsDirectoryEntries(self):
        entries = self.node.entries

        self.assertEqual(len(self.itemAccess.untaggedItems), len(entries))

        for i in self.itemAccess.untaggedItems:
            self.assertTrue(i.name in entries)

            validateLinkInterface(self, entries[i.name])
Example #4
0
    def testItemLinksReplaceUntaggedDirectory(self):
        untaggedNode = self.node.entries['.untagged']

        # untagged node must be a link as the untagged directory node
        # weights less than the '.untagged' item from the tagged items.
        validateLinkInterface(self, untaggedNode)
Example #5
0
    def testItemLinksReplaceUntaggedDirectory(self):
        untaggedNode = self.node.entries['.untagged']

        # untagged node must be a link as the untagged directory node
        # weights less than the '.untagged' item from the tagged items.
        validateLinkInterface(self, untaggedNode)
    def testMatchingItemIsAvailableAsLink(self):
        e = self.node.entries['item1']

        validateLinkInterface(self, e)