Beispiel #1
0
 def test_trusted_proxies_setter_invalid(self):
     config = Configuration()
     with self.assertRaises(ConfigurationError):
         config.trusted_proxies = 'invalid'
Beispiel #2
0
 def test_trusted_proxies_setter_valid(self):
     config = Configuration()
     config.trusted_proxies = ['2.2.2.2']
     self.assertEqual(config.trusted_proxies, ['2.2.2.2'])