Esempio n. 1
0
	def test_setup_cmd(self):
		installer = Installer()
		installer.setup_cmd(self.test_cmd)

		self.assertTrue(exists(joinpath(const.autocomp_dir, self.test_cmd)))
		
		if self.remove_files:
			try:
				remove(joinpath(self.autocomp_dir, self.test_cmd))
			except IOError:
				pass
Esempio n. 2
0
	def test_remove_non_existant_cmd(self):
		installer = Installer()

		with self.assertRaises(InstallError) as e:
			installer.remove_cmd('gxafdsew323')