コード例 #1
0
ファイル: repo.py プロジェクト: ActivKonnect/castor
    def test_apply_file(self):
        file_path = path.join(self.workdir, '.htaccess')
        c = Castor(self.test_root)
        c.apply_file('files/htaccess', file_path)

        with open(file_path, 'r') as f:
            self.assertEqual(f.read(), 'Require all granted\n')
コード例 #2
0
ファイル: repo.py プロジェクト: VincentLoy/castor
    def test_apply_file(self):
        file_path = path.join(self.workdir, ".htaccess")
        c = Castor(self.test_root)
        c.apply_file("files/htaccess", file_path)

        with open(file_path, "r") as f:
            self.assertEqual(f.read(), "Require all granted\n")