Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/c/r/cryptobox-server-0.3.0/src/cryptobox/tests/test.cryptoboxtools.py   cryptobox-server(Download)
		path = os.path.join(os.path.sep, "dev")
		self.assertTrue(os.path.devnull in func(path, 1, 3))
		self.assertFalse(os.path.devnull in func(path, 2, 3))
		self.assertFalse(None in func(path, 17, 23))
 
		func = cbx_tools.is_part_of_blockdevice
		self.assertTrue(func(self.blockdevice, self.device))
		self.assertFalse(func(self.blockdevice, self.blockdevice))
		self.assertFalse(func(self.device, self.blockdevice))
		self.assertFalse(func(self.device, self.device))

src/c/r/cryptobox-server-0.3.0/src/cryptobox/tests/test.cryptobox.py   cryptobox-server(Download)
	def test_denied_devices(self):
		'''is_device_allowed should fail with not explicitly allowed devices'''
		self.assertFalse(self.cb.is_device_allowed("/dev/hda"))
		self.assertFalse(self.cb.is_device_allowed("/dev/loopa/../hda"))
		self.assertFalse(self.cb.is_device_allowed("/"))
		## this device does not exist -> no permission check possible
		self.assertFalse(self.cb.is_device_allowed("/dev/loop"))