Example #1
0
 def test_transacao_anterior_eh_obrigatoria(self):
     post_data = self.get_post_data(Transacao=None)
     wrapper = CAN(cgi_url=self.url, **post_data)
     wrapper.validate()
     self.assertTrue('Transacao' in wrapper.errors)
Example #2
0
 def test_numero_documento_eh_opcional(self):
     post_data = self.get_post_data(NumeroDocumento=None)
     wrapper = CAN(cgi_url=self.url, **post_data)
     wrapper.validate()
     self.assertFalse('NumeroDocumento' in wrapper.errors)