Пример #1
0
	def testIfNoFileInLocationGiven(self):
		self.args.file = "nofile.txt"
		this_board, error, using_file = parse_arguments(self.args)
		assert error == "No board entered. Please enter one."
Пример #2
0
	def testIfNewAndNoFile(self):
		self.args.new = True
		self.args.file = None
		this_board, error, using_file = parse_arguments(self.args)
		assert error == "No board entered. Please enter one."