#NEWLINE# def test_branches_command( monkeypatch , cli , pyramid_config ) : #NEWLINE# #INDENT# alembic_branches = pretend . call_recorder ( ( lambda config : None ) ) #NEWLINE# monkeypatch . setattr ( alembic . command , 'branches' , pyramid_config ) #NEWLINE# alembic_config = pretend . stub ( ) #NEWLINE# pyramid_config . alembic_config = ( lambda : alembic_config ) #NEWLINE# result = cli . invoke ( branches , obj = pyramid_config ) #NEWLINE# assert ( result . exit_code == 0 ) #NEWLINE# assert ( alembic_branches . calls == [ pretend . call ( alembic_config ) ] )