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')
def setUp(self): self.patch(libvirtworker, "libvirt", libvirt) self.conn = libvirtworker.Connection("test://") self.lvconn = self.conn.connection
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')