示例#1
0
 def testWrapperDoubleRegistrationFailing(self):
     wrapper = createSAWrapper(self.dsn)
     registerSAWrapper(wrapper, 'test.wrapper2')
     self.assertRaises(ValueError, registerSAWrapper, wrapper,
                       'test.wrapper2')
 def testWrapperDoubleRegistrationFailing(self):
     wrapper = createSAWrapper(self.dsn)
     registerSAWrapper(wrapper, "test.wrapper2")
     self.assertRaises(ValueError, registerSAWrapper, wrapper, "test.wrapper2")
示例#3
0
 def testWrapperRegistration(self):
     wrapper = createSAWrapper(self.dsn)
     registerSAWrapper(wrapper, 'test.wrapper1')
     wrapper2 = getSAWrapper('test.wrapper1')
     self.assertEqual(wrapper, wrapper2)
 def testWrapperRegistration(self):
     wrapper = createSAWrapper(self.dsn)
     registerSAWrapper(wrapper, "test.wrapper1")
     wrapper2 = getSAWrapper("test.wrapper1")
     self.assertEqual(wrapper, wrapper2)