def setUp(self):
     """ Preparing test rig """
     # Doesn't matter what this file is, we're going to populate
     # it for testing:specifics.  Pick the empty one for kicks.
     _conffile = 'test_configs/empty.conf'
     self.library = per_user_configs.GetUserSearchDomains(_conffile)
     self.library.search_domains = [
         'example.com',
         'example.org',
     ]
     self.library.dynamic_dict = {
         'vpn_example_string_1': 'example1.example.com',
         'vpn_example_list_1': [
             'example1.example.com',
         ],
         'vpn_example_list_2': [
             'example1.example.com',
             'example2.example.net',
         ],
         'vpn_example_dup_1': 'example.com',
         'vpn_example_dup_2': [
             'example.org',
         ],
         'vpn_example_emptystring': '',
         'vpn_example_emptylist': [],
         'vpn_example_number': 3,
     }
 def setUp(self):
     """ Preparing test rig """
     _conffile = 'test_configs/empty.conf'
     if not os.path.isfile(_conffile):  # pragma: no cover
         self.fail(
             '{} must exist to test GetUserSearchDomains'.format(_conffile))
     self.library = per_user_configs.GetUserSearchDomains(_conffile)
 def setUp(self):
     """ Preparing test rig """
     _conffile = 'test_configs/THIS_FILE_ISNT_HERE.conf'
     self.library = per_user_configs.GetUserSearchDomains(_conffile)
 def setUp(self):
     """ Preparing test rig """
     _usersfile = 'test_configs/testing_users.conf'
     _conffile = 'test_configs/testing_search_domains.conf'
     self.library = per_user_configs.GetUserSearchDomains(_conffile)
     self.users = self.library._ingest_config_from_file(_usersfile)