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_string(self):
"Test getter/setters for string options"
pyalpm.options.arch = 'i686'
self.assertEqual(pyalpm.options.arch, 'i686')
with self.assertRaises(TypeError):
pyalpm.options.arch = ["i686"]
def test_string(self):
"Test getter/setters for string options"
pyalpm.options.arch = 'i686'
self.assertEqual(pyalpm.options.arch, 'i686')
with self.assertRaises(TypeError):
pyalpm.options.arch = ["i686"]
def test_arch(self):
with self.assertRaises(pyalpm.error):
pyalpm.options.arch = "i686"
with self.assertRaises(pyalpm.error):
s = pyalpm.options.arch
def test_arch(self):
with self.assertRaises(pyalpm.error):
pyalpm.options.arch = "i686"
with self.assertRaises(pyalpm.error):
s = pyalpm.options.arch
def test_string(self):
"Test getter/setters for string options"
pyalpm.options.arch = 'i686'
self.assertEqual(pyalpm.options.arch, 'i686')
with self.assertRaises(TypeError):
pyalpm.options.arch = ["i686"]