'Test that the team size field is correctly updated when deleting a
team membership.'

def test_team_size_delete_membership(self):

    self.assertEqual(self.team1.team_size, 2)
    self.team_membership11.delete()
    team = CourseTeam.objects.get(id=self.team1.id)
    self.assertEqual(team.team_size, 1)
