def test_compressor_subprocess_unicode(self):
        path = os.path.dirname(os.path.dirname(__file__))
        content = io.open(path + '/assets/css/unicode.css', encoding="utf-8").read()
        output = SubProcessCompressor(False).execute_command(('cat',), content)
        self.assertEqual(""".some_class {
  // Some unicode
  content: "áéíóú";
}
""", output)
Esempio n. 2
0
    def test_compressor_subprocess_unicode(self):
        tests_path = os.path.dirname(os.path.dirname(__file__))
        output = SubProcessCompressor(False).execute_command(
            '/usr/bin/env cat',
            open(tests_path + '/assets/css/unicode.css').read())
        self.assertEqual(""".some_class {
  // Some unicode
  content: "áéíóú";
}
""", output)