def test_add_rating(self):
        # This will test to make sure adding a rating works.
        self.assertTrue(RatingData.objects.add(self.sample, self.bob, 1))
        
        # This will test changing a user's rating
        self.assertTrue(RatingData.objects.add(self.sample, self.bob, 2))
        
        # This should not allow a option that is not a valid choice.
        self.assertFalse(RatingData.objects.add(self.sample, self.bob, 3))
        
        # This should be false if no user is supplied.
        self.assertFalse(RatingData.objects.add(self.sample, None, 1))
Returns ``os.path.isdir(path)`` if `path` is legal.
dataset/ETHPy150Open callowayproject/django-critic/critic/tests.py/CriticTestCase.test_add_rating--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/objserverfactory.py/ObjServer.isdir