Beispiel #1
0
	def testInvalidInputThrowInvalidInputException(self):
		with self.assertRaises(work.InvalidInput):
			work.parseArguments(["work","cafff"])
Beispiel #2
0
	def testHelpInputReturnsHelpCommand(self):
		c = work.parseArguments(["work","help"])
		self.assertEqual(c.__class__,work.HelpCommand)
Beispiel #3
0
	def testOnInputReturnsSwitchCommand(self):
		c = work.parseArguments(["work","on"])
		self.assertEqual(c.__class__,work.SwitchCommand)