def test_create_setting(self):
    settings.test = 'Test settings'
    settings.test.setting = Setting('Test setting')
    self.assertIsInstance(settings.test._settings['setting'], Setting)
    self.assertEqual(settings.test._settings['setting'].label, 'Test setting')
    self.assertEqual(settings.test.setting, None)
def test_create_setting(self):
    settings.test = 'Test settings'
    settings.test.setting = Setting('Test setting')
    self.assertIsInstance(settings.test._settings['setting'], Setting)
    self.assertEqual(settings.test._settings['setting'].label, 'Test setting')
    self.assertEqual(settings.test.setting, None)