#NEWLINE# def test_stochastic( self ) : #NEWLINE# #INDENT# ( p1 , p2 ) = ( axelrod . Cooperator ( ) , axelrod . Cooperator ( ) ) #NEWLINE# mp = MoranProcess ( ( p1 , p2 ) ) #NEWLINE# self . assertFalse ( mp . _stochastic ) #NEWLINE# ( p1 , p2 ) = ( axelrod . Cooperator ( ) , axelrod . Cooperator ( ) ) #NEWLINE# mp = MoranProcess ( ( p1 , p2 ) , noise = 0.05 ) #NEWLINE# self . assertTrue ( mp . _stochastic ) #NEWLINE# ( p1 , p2 ) = ( axelrod . Cooperator ( ) , axelrod . Random ( ) ) #NEWLINE# mp = MoranProcess ( ( p1 , p2 ) ) #NEWLINE# self . assertTrue ( mp . _stochastic )