#NEWLINE# def test_version_replacing_three_digits( self ) : #NEWLINE# #INDENT# source = StringIO ( "arakadabra\nblah blah\nVERSION = (1, 2, 3)\nx = (3, 2, 1)\nfor i in x:\n    print 'olah'" ) #NEWLINE# expected_output = "arakadabra\nblah blah\nVERSION = (0, 0, 1)\nx = (3, 2, 1)\nfor i in x:\n    print 'olah'" #NEWLINE# self . assertEquals ( expected_output , '' . join ( replace_version ( source , version = ( 0 , 0 , 1 ) ) ) )