def test_fromdict(self):
        header_dict = self.header_arquivo.todict()
        header_arquivo = itau.registros.HeaderArquivo(**header_dict)
        self.assertEqual(header_arquivo.cedente_nome,
                                                'TRACY TECNOLOGIA LTDA ME')
        self.assertEqual(header_arquivo.nome_do_banco, 'BANCO ITAU SA')
def step_impl(context):
    data = json.loads(context.text)
    receiver_name = re.match(r"\<(\w+)'s id\>", data['receiver']).group(1)
    data['receiver'] = context.users[receiver_name]['id']
    context.request.add_data(data)