Пример #1
0
 def test_str(self):
     dictionary = {
         'proxies': {
             'http': 'http://*****:*****@10.10.1.10:1080'
         },
         'verify': False
     }
     o = Options(dictionary)
     self.assertEqual(
         "Options: " + os.linesep +
         "{'verify': False, 'proxies': {'http': 'http://*****:*****@10.10.1.10:1080'}}",
         o.__str__())
Пример #2
0
 def test_str(self):
     dictionary = {'proxies': {'http': 'http://*****:*****@10.10.1.10:1080'}, 'verify': False}
     o = Options(dictionary)
     self.assertEqual("Options: " + os.linesep + "{'verify': False, 'proxies': {'http': 'http://*****:*****@10.10.1.10:1080'}}",
                      o.__str__())