Ejemplo n.º 1
0
 def test_palce_empty_no_parent(self):
     """Verify a document with parent cannot be placed in an empty tree."""
     tree = build(EMPTY)
     doc = MockDocumentSkip.new(tree,
                                os.path.join(EMPTY, 'temp'), EMPTY, 'TEMP',
                                parent='REQ')
     self.assertRaises(DoorstopError, tree._place, doc)  # pylint: disable=W0212
Ejemplo n.º 2
0
 def test_palce_empty(self):
     """Verify a document can be placed in an empty tree."""
     tree = build(EMPTY)
     doc = MockDocumentSkip.new(tree, os.path.join(EMPTY, 'temp'), EMPTY,
                                'TEMP')
     tree._place(doc)  # pylint: disable=W0212
     self.assertEqual(1, len(tree))
Ejemplo n.º 3
0
 def test_palce_empty(self):
     """Verify a document can be placed in an empty tree."""
     tree = build(EMPTY)
     doc = MockDocumentSkip.new(tree,
                                os.path.join(EMPTY, 'temp'), EMPTY, 'TEMP')
     tree._place(doc)  # pylint: disable=W0212
     self.assertEqual(1, len(tree))