def test_index(self): inicializarDb(carros) query=default.db.carro.id>0 rows=default.db(query).select(orderby=default.db.carro.id) result=default.index() self.assertEqual(result['titulo'],'Ofertas') for row in rows: row_with_result_test(self,row,result)
def test_index(self): self.assertEqual(default.index()['nome'],'Teste sera feito aqui')