def test_total(self):
        RatingData.objects.add(self.product, self.bob, 3)
        RatingData.objects.add(self.product, self.jim, 2)
        RatingData.objects.add(self.product, self.jane, 1)
        
        # The total should be 3
        self.assertEqual(RatingData.objects.total(self.product), 3)
        
        # The total for each option should be 1
        self.assertEqual(RatingData.objects.total(self.product, 3), 1)
        self.assertEqual(RatingData.objects.total(self.product, 2), 1)
        self.assertEqual(RatingData.objects.total(self.product, 1), 1)
Method to get active 'storage_plugins' plugins for Doccode Plugin Mapping instance
dataset/ETHPy150Open callowayproject/django-critic/critic/tests.py/CriticTestCase.test_total--crossover with--dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/dms_plugins/models.py/DoccodePluginMapping.get_storage_plugins