#NEWLINE# def test_content_from_string_tree_should_return_tree( self ) : #NEWLINE# #INDENT# text = fixture ( 'ls_tree_a' ) . splitlines ( ) [ ( - 1 ) ] #NEWLINE# tree = Tree . content_from_string ( None , text ) #NEWLINE# assert_equal ( Tree , self . __class__ ) #NEWLINE# assert_equal ( '650fa3f0c17f1edb4ae53d8dcca4ac59d86e6c44' , tree . id ) #NEWLINE# assert_equal ( '040000' , tree . mode ) #NEWLINE# assert_equal ( 'test' , tree . name )