OK


On Thu, Oct 10, 2013 at 2:21 PM, Gustavo Fonseca
<notifications@github.com>wrote:

> In balaio/tests/test_gateway_server.py:
>
> > +        self.session.remove()
> > +        testing.tearDown()
> > +
> > +    def test_GET_to_available_resource(self):
> > +        self.testapp.get('/api/v1/tickets/', status=200)
> > +
> > +    @unittest.expectedFailure
> > +    def test_GET_to_one_ticket(self):
> > +        res = self.testapp.get('/api/v1/tickets/1/')
> > +
> > +        self.assertEqual(res.body, '{"title": "Erro no pacote xxx", "finished_at": null, "author": "Aberlado Barbosa", "articlepkg_id": 1, "comments": [], "is_open": true, "started_at": "2013-10-09 16:44:29.865787", "id": 1, "resource_uri": "/api/v1/tickets/1/"}')
> > +
> > +    def test_GET_to_tickets(self):
> > +        res = self.testapp.get('/api/v1/tickets/')
> > +
> > +        self.assertEqual(res.body, '{"meta": {"previous": null, "next": null, "total": 3, "limit": 20, "offset": 0}, "objects": [{"title": "Erro no pacote xxx", "finished_at": null, "author": "Aberlado Barbosa", "articlepkg_id": 1, "comments": [], "is_open": true, "started_at": "2013-10-09 16:44:29.865787", "id": 1, "resource_uri": "/api/v1/tickets/1/"}, {"title": "Erro no pacote xxx", "finished_at": null, "author": "Aberlado Barbosa", "articlepkg_id": 1, "comments": [], "is_open": true, "started_at": "2013-10-09 16:44:29.865787", "id": 2, "resource_uri": "/api/v1/tickets/2/"}, {"title": "Erro no pacote xxx", "finished_at": null, "author": "Aberlado Barbosa", "articlepkg_id": 1, "comments": [], "is_open": true, "started_at": "2013-10-09 16:44:29.865787", "id": 3, "resource_uri": "/api/v1/tickets/3/"}]}')
>
> Colocar esse JSON não é uma boa idéia ein @jamilatta<https://github.com/jamilatta>,
> pq a ordem dos elementos vai depender da arquitetura da máquina e
> implementação do interpretador. Sugiro que vc carregue ele em estruturas
> python para fazer a comparação.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/scieloorg/balaio/pull/146/files#r6893510>
> .
>



-- 
Atenciosamente,

Jamil Atta Junior