Skip to content
Permalink
Browse files

better testcase for settings.overrides.setdefault

  • Loading branch information
dangra committed Jul 9, 2014
1 parent 5ec430b commit e22daaf4112c14c0af247baf1fed202c45135aa3
Showing with 3 additions and 0 deletions.
  1. +3 −0 scrapy/tests/test_settings/__init__.py
@@ -203,6 +203,9 @@ def test_deprecated_attribute_overrides(self):
self.assertEqual(self.settings.get('BAR'), 'bus')
self.assertEqual(self.settings.overrides.get('BAR'), 'bus')

self.settings.overrides.setdefault('BAR', 'fez')
self.assertEqual(self.settings.get('BAR'), 'bus')

self.settings.overrides.setdefault('FOO', 'fez')
self.assertEqual(self.settings.get('FOO'), 'fez')
self.assertEqual(self.settings.overrides.get('FOO'), 'fez')

0 comments on commit e22daaf

Please sign in to comment.
You can’t perform that action at this time.