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))
Exemplo n.º 2
0
 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))
Exemplo n.º 3
0
    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(
            "[\n            ('bin', ['activate', 'command-stub', 'rsync', 'ssh'])\n        ]",
            build_data_files_string(self.project))
Exemplo n.º 4
0
    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(
            "[\n            ('bin', ['activate', 'command-stub', 'rsync', 'ssh'])\n        ]",
            build_data_files_string(self.project))
Exemplo n.º 5
0
 def test_should_return_empty_data_files_string(self):
     self.assertEqual("[]", build_data_files_string(self.project))
Exemplo n.º 6
0
 def test_should_return_empty_data_files_string(self):
     self.assertEqual("[]", build_data_files_string(self.project))