oc-facho/tests/test_data.py
bit4bit@riseup.net 8d46076427 codelist TipoDocumento
FossilOrigin-Name: 684b4eb4bd85be7cc7cf73a04b04ec0c16b49e6340d61688779d48d1bdfc7424
2020-05-31 01:57:11 +00:00

22 lines
828 B
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of facho. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
"""Tests for `facho` package."""
import pytest
from facho.fe.data.dian import codelist
def test_tiporesponsabilidad():
assert codelist.TipoResponsabilidad.short_name == 'TipoResponsabilidad'
assert codelist.TipoResponsabilidad['Autorretenedor']['name'] == 'Autorretenedor'
def test_tipoorganizacion():
assert codelist.TipoOrganizacion.short_name == 'TipoOrganizacion'
assert codelist.TipoOrganizacion['Persona Natural']['name'] == 'Persona Natural'
def test_tipodocumento():
assert codelist.TipoDocumento.short_name == 'TipoDocumento'
assert codelist.TipoDocumento['Factura de Venta Nacional']['code'] == '01'