File: test_011_codepage.py

package info (click to toggle)
ezdxf 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 104,528 kB
  • sloc: python: 182,341; makefile: 116; lisp: 20; ansic: 4
file content (20 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Created: 12.03.2011, 2018 rewritten for pytest
# Copyright (C) 2011-2019, Manfred Moitzi
# License: MIT License
from ezdxf.tools.codepage import toencoding, tocodepage


def test_ansi_1250():
    assert "cp1250" == toencoding("ansi_1250")


def test_default():
    assert "cp1252" == toencoding("xyz")


def test_tocodepage_1252():
    assert "ANSI_1252" == tocodepage("cp1252")


def test_tocodepage_936():
    assert "ANSI_936" == tocodepage("gbk")