<s> """<STR_LIT>""" <EOL> import os <EOL> from graf import GraphParser <EOL> class TestGraphParser : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> self . gparser = GraphParser ( ) <EOL> def test_parse ( self ) : <EOL> """<STR_LIT>""" <EOL> filename = os . path . dirname ( __file__ ) + '<STR_LIT>' <EOL> g = self . gparser . parse ( filename ) <EOL> expected_result = <NUM_LIT> <EOL> assert ( len ( g . nodes ) == expected_result ) <EOL> filename = os . path . dirname ( __file__ ) + '<STR_LIT>' <EOL> g = self . gparser . parse ( filename ) <EOL> expected_result = <NUM_LIT> <EOL> assert ( len ( g . nodes ) == expected_result ) <EOL> expected_parsed_deps = set ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> parsed_dependencies = self . gparser . _parsed_deps <EOL> assert ( parsed_dependencies == expected_parsed_deps ) </s>
