예제 #1
0
 def testEmptyString(self):
     with self.assertRaises(SystemExit) as e:
         ekeyword.main(['', os.path.join(TESTDIR, 'process-1.ebuild')])
     self.assertNotEqual(e.exception.code, os.EX_OK)
예제 #2
0
 def testVersion(self):
     with self.assertRaises(SystemExit) as e:
         ekeyword.main(['--version', '--dry-run'])
     self.assertEqual(e.exception.code, os.EX_OK)
예제 #3
0
 def testSmoke(self):
     ekeyword.main(
         ['arm', '--dry-run',
          os.path.join(TESTDIR, 'process-1.ebuild')])
예제 #4
0
	def testEmptyString(self):
		with self.assertRaises(SystemExit) as e:
			ekeyword.main(['', os.path.join(TESTDIR, 'process-1.ebuild')])
		self.assertNotEqual(e.exception.code, os.EX_OK)
예제 #5
0
	def testVersion(self):
		with self.assertRaises(SystemExit) as e:
			ekeyword.main(['--version', '--dry-run'])
		self.assertEqual(e.exception.code, os.EX_OK)
예제 #6
0
	def testSmoke(self):
		ekeyword.main(['arm', '--dry-run', os.path.join(TESTDIR, 'process-1.ebuild')])