#NEWLINE# def test_four_players( self ) : #NEWLINE# #INDENT# players = [ axelrod . Cooperator ( ) for _ in range ( 3 ) ] #NEWLINE# players . append ( axelrod . Defector ( ) ) #NEWLINE# random . seed ( 10 ) #NEWLINE# mp = MoranProcess ( players ) #NEWLINE# populations = mp . play ( ) #NEWLINE# self . assertEqual ( len ( mp ) , 9 ) #NEWLINE# self . assertEqual ( len ( populations ) , 9 ) #NEWLINE# self . assertEqual ( populations , mp . populations ) #NEWLINE# self . assertEqual ( mp . winning_strategy_name , str ( axelrod . Defector ( ) ) )