def test_Team_ClearLoss_1(self): header = ["Div","Date","HomeTeam","AwayTeam","FTHG","FTAG","FTR","HTHG","HTAG","HTR","HST","AST","HS","AS","WHH","B365A"] values = ["E0","26/03/08","Bohs","Rowfus","4","0","H","3","1","H","4","4","10","5","1.1","1.2"] fixture1 = Fixture(header, values) header = ["Div","Date","HomeTeam","AwayTeam","FTHG","FTAG","FTR","HTHG","HTAG","HTR","HST","AST","HS","AS","WHH","B365A"] values = ["E0","27/03/08","Bohs","Rowfus","2","0","H","3","1","H","4","4","10","5","1.1","1.2"] fixture2 = Fixture(header, values) header = ["Div","Date","HomeTeam","AwayTeam","FTHG","FTAG","FTR","HTHG","HTAG","HTR","HST","AST","HS","AS","WHH","B365A"] values = ["E0","28/03/08","Bohs","Rowfus","2","1","H","1","1","D","4","4","10","5","1.1","1.2"] fixture3 = Fixture(header, values) header = ["Div","Date","HomeTeam","AwayTeam","FTHG","FTAG","FTR","HTHG","HTAG","HTR","HST","AST","HS","AS","WHH","B365A"] values = ["E0","28/03/08","Bohs","Rowfus","2","1","H","2","1","H","4","4","10","5","1.1","1.2"] fixture4 = Fixture(header, values) team = Team("Rowfus") team.addFixture(fixture1) team.addFixture(fixture2) team.addFixture(fixture3) team.addFixture(fixture4) self.assertEquals(team.getProbClearLoss(), 0.5)