def test_validate_dict_with_valid_login_cid(self):
     config_data = {key: 'test' for key in config._REQUIRED_KEYS}
     config_data['login_customer_id'] = '1234567893'
     try:
         config.validate_dict(config_data)
     except ValueError as ex:
         self.fail('test_validate_dict_with_login_cid failed unexpectedly: '
                   '{}'.format(ex))
Esempio n. 2
0
 def test_validate_dict_with_valid_login_cid(self):
     config_data = {key: "test" for key in config._REQUIRED_KEYS}
     config_data["login_customer_id"] = "1234567893"
     try:
         config.validate_dict(config_data)
     except ValueError as ex:
         self.fail("test_validate_dict_with_login_cid failed unexpectedly: "
                   "{}".format(ex))
 def test_validate_dict(self):
     config_data = {key: 'test' for key in config._REQUIRED_KEYS}
     try:
         config.validate_dict(config_data)
     except ValueError as ex:
         self.fail('test_validate_dict failed unexpectedly: {}'.format(ex))