コード例 #1
0
 def test_ICMSSN(self):
     """Testa tag ICMSSN Simples Nacional"""
     icms_cst = ImpCST('SN')
     xml = '<ICMSSN><indSN></indSN></ICMSSN>'.encode()
     self.assertEqual(xml, icms_cst.to_xml())
コード例 #2
0
 def test_ICMSOutraUF(self):
     """Testa tag ICMSOutraUF com CST"""
     icms_cst = ImpCST('OutraUF')
     xml = '<ICMSOutraUF><CST></CST><vBCOutraUF></vBCOutraUF><pICMSOutraUF></pICMSOutraUF>' \
           '<vICMSOutraUF></vICMSOutraUF></ICMSOutraUF>'.encode()
     self.assertEqual(xml, icms_cst.to_xml())
コード例 #3
0
 def test_ICMS90(self):
     """Testa tag ICMS90 com CST 90"""
     icms_cst = ImpCST('90')
     xml = '<ICMS90><CST></CST><pRedBC></pRedBC><vBC></vBC><pICMS>' \
           '</pICMS><vICMS></vICMS></ICMS90>'.encode()
     self.assertEqual(xml, icms_cst.to_xml())
コード例 #4
0
 def test_ICMS60(self):
     """Testa tag ICMS60 com CST 60"""
     icms_cst = ImpCST('60')
     xml = '<ICMS60><CST></CST><vBCSTRet></vBCSTRet><vICMSSTRet></vICMSSTRet>' \
           '<pICMSSTRet></pICMSSTRet></ICMS60>'.encode()
     self.assertEqual(xml, icms_cst.to_xml())
コード例 #5
0
 def test_ICMS45(self):
     """Testa tag ICMS45 com CST 45"""
     icms_cst = ImpCST('45')
     xml = '<ICMS45><CST></CST></ICMS45>'.encode()
     self.assertEqual(xml, icms_cst.to_xml())
コード例 #6
0
 def test_ICMS00(self):
     """Testa tag ICMS00 com CST 00"""
     icms_cst = ImpCST('00')
     xml = '<ICMS00><CST></CST><vBC></vBC><pICMS></pICMS><vICMS></vICMS></ICMS00>'.encode()
     self.assertEqual(xml, icms_cst.to_xml())