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')
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")