def vendedores(request, month): if request.method == "GET": rs = Sales() return Response(rs.return_sellers(month))
def test_return_sellers(self): self.assertEqual(len(Sales.return_sellers(self, 1)), 2) self.assertEqual(Sales.return_sellers(self, 2), 404)