コード例 #1
0
	def test_conffile(self):
		""" testing test environment """
		name = 'Plop'
		bash_manager = FsSeriesStore(self.get_global_conffifile_fullpath())
		self.assertTrue(bash_manager.get_global_config_file() 
				== self.get_global_conffifile_fullpath())
		
		expected_path = self.cwd # "."
		got_path = bash_manager.get_absolute_path()
		self.assert_equivalent_path(got_path, expected_path)

		got_file = bash_manager.get_serie_configfile(name)
		expected_file = os.path.join(self.cwd, os.path.join(name, ".play_season"))

		self.assert_equivalent_path(got_file, expected_file)
		return True