def METHOD_NAME(self):
    self.profile.calculate_points()
    # Test saving
    for attr in ('points', 'problem_count', 'performance_points'):
        with self.subTest(attribute=attr):
            setattr(self.profile, attr, -1000)
            self.assertEqual(getattr(self.profile, attr), -1000)
            self.profile.calculate_points()
            self.assertEqual(getattr(self.profile, attr), 0)