def setUp(self):
        # Create method was not returning the created object with
        # the create() method
        try:
            self.config = Config.objects.get(group='test')
        except __HOLE__:
            self.config = Config(group='test')
            self.config.save()

        self.config.values.append(CustomValue(name='test_config',
                                              rawvalue=u'a nice config',
                                              formatter='text'))
dataset/ETHPy150Open LeightonStreet/LingoBarter/lingobarter/core/tests/test_models.py/TestConfig.setUp