Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_paths_wrong_type(self):
opts = pyalpm.options
with self.assertRaises(TypeError):
opts.root = 3
with self.assertRaises(TypeError):
opts.dbpath = 3
with self.assertRaises(TypeError):
opts.logfile = 3
def test_logfile(self):
opts = pyalpm.options
with self.assertRaises(pyalpm.error):
opts.logfile = "/var/log/pacman.log"
with self.assertRaises(pyalpm.error):
s = opts.logfile