示例#1
0
 def test_deprecated_connection_and_uri(self):
     with self.assertRaises(config.ConfigErrors):
         with assertProducesWarnings(
                 DeprecatedApiWarning,
                 message_pattern='connection argument has been deprecated'):
             self.create_worker('bot',
                                'pass',
                                libvirtworker.Connection('test'),
                                'path',
                                'path',
                                uri='custom')
示例#2
0
 def setUp(self):
     self.patch(libvirtworker, "libvirt", libvirt)
     self.conn = libvirtworker.Connection("test://")
     self.lvconn = self.conn.connection
示例#3
0
 def test_deprecated_connection(self):
     with assertProducesWarnings(DeprecatedApiWarning,
                                 message_pattern='connection argument has been deprecated'):
         self.create_worker('bot', 'pass', libvirtworker.Connection('test'), 'path', 'path')