Exemplo n.º 1
0
    def test_included( self ):
        node = HeaderNode( "file.hpp" )
        self.assertFalse( node.isIncluded() )

        node.setIncluded( True )
        self.assertTrue( node.isIncluded() )

        node.setIncluded( False )
        self.assertFalse( node.isIncluded() )
Exemplo n.º 2
0
    def test_included(self):
        node = HeaderNode("file.hpp")
        self.assertFalse(node.isIncluded())

        node.setIncluded(True)
        self.assertTrue(node.isIncluded())

        node.setIncluded(False)
        self.assertFalse(node.isIncluded())
Exemplo n.º 3
0
    def test_init( self ):
        node = HeaderNode( "file.hpp" )

        self.assertEqual( node.getData(), "file.hpp" )
        self.assertEqual( len( node.getChildren() ), 0 )
        self.assertEqual( len( node.getParents() ), 0 )

        self.assertFalse( node.isIncluded() )
        self.assertEqual( node.getCounter(), 0 )
Exemplo n.º 4
0
    def test_init(self):
        node = HeaderNode("file.hpp")

        self.assertEqual(node.getData(), "file.hpp")
        self.assertEqual(len(node.getChildren()), 0)
        self.assertEqual(len(node.getParents()), 0)

        self.assertFalse(node.isIncluded())
        self.assertEqual(node.getCounter(), 0)