Example #1
0
 def test_normal_case(self):
     """Tests that _get_sanitizer returns the correct value in normal cases."""
     os.environ['SANITIZER'] = self.sanitizer
     self.assertEqual(config_utils._get_sanitizer(), self.sanitizer)
Example #2
0
 def test_capitalization(self):
     """Tests that that _get_sanitizer handles capitalization properly."""
     os.environ['SANITIZER'] = self.sanitizer.upper()
     self.assertEqual(config_utils._get_sanitizer(), self.sanitizer)
Example #3
0
 def test_default_value(self):
     """Tests that the default value returned by _get_sanitizer is correct."""
     self.assertEqual(config_utils._get_sanitizer(), 'address')