- Timestamp:
- 21 Nov 2014, 13:09:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/tests/test_zcml.py
r11999 r12030 56 56 self.conf1_path = os.path.join(self.workdir, 'paypal1.conf') 57 57 self.conf2_path = os.path.join(self.workdir, 'paypal2.conf') 58 open(self.conf1_path, 'w').write(' Fake')59 open(self.conf2_path, 'w').write(' Fake')58 open(self.conf1_path, 'w').write('[rest-client]\n') 59 open(self.conf2_path, 'w').write('[rest-client]\n') 60 60 61 61 def test_datacenter_config_directive(self): … … 85 85 zcstring(config) # execute ZCML 86 86 result = getUtility(IPayPalConfig) 87 assert result == {'path': self.conf1_path} 87 assert result == { 88 'path': self.conf1_path, 89 'client_id': None, 90 'client_secret': None, 91 'mode': 'sandbox' 92 } 88 93 89 94 def test_paypal_config_singleton(self):
Note: See TracChangeset for help on using the changeset viewer.