def test_should_return_data_files_string_including_several_files(self): self.project.install_file("bin", "activate") self.project.install_file("bin", "command-stub") self.project.install_file("bin", "rsync") self.project.install_file("bin", "ssh") self.assertEqual("data_files = [('bin', ['activate', 'command-stub', 'rsync', 'ssh'])],",\ build_data_files_string(self.project))
def test_should_return_data_files_string_with_files_to_be_installed_in_several_destinations(self): self.project.install_file("/usr/bin", "pyb") self.project.install_file("/etc", "pyb.cfg") self.project.install_file("data", "pyb.dat") self.project.install_file("data", "howto.txt") self.assertEqual("data_files = [('/usr/bin', ['pyb']), ('/etc', ['pyb.cfg']),"\ " ('data', ['pyb.dat', 'howto.txt'])],",\ build_data_files_string(self.project))
def test_should_return_empty_data_files_string(self): self.assertEqual("", build_data_files_string(self.project))