示例#1
0
    def test_descartaPantalonesQuedateConUno(self):
        marcaInput = [
            pantalon("Nike", 100),
            pantalon("Nike", 100),
            pantalon("Kike", 10),
            pantalon("Kike", 10),
            pantalon("Kike", 10)
        ]

        self.assertEqual(vendePantalones(5, 3, marcaInput), "2 110")
示例#2
0
    def testinput_Chio(self):
        inputChio = [
            pantalon("Patito", 4),
            pantalon("Patito", 5),
            pantalon("Levice", 15),
            pantalon("Patito", 5),
            pantalon("Levice", 3),
            pantalon("Nike", 20),
            pantalon("Nike", 18),
            pantalon("Levice", 4)
        ]

        self.assertEqual(vendePantalones(8, 5, inputChio), "3 40")
示例#3
0
    def test_venderNingunPantalon(self):
        marcaInput = [pantalon("Nike", 100), pantalon("Bike", 110)]

        self.assertEqual(vendePantalones(2, 2, marcaInput), "0 0")
示例#4
0
    def test_venderTodosPantalones(self):
        marcaInput = [pantalon("Nike", 100), pantalon("Bike", 110)]

        self.assertEqual(vendePantalones(2, 0, marcaInput), 0)
示例#5
0
    def test_pantalonesAVenderMayorQueActual(self):
        marcaInput = [pantalon("Nike", 100), pantalon("Bike", 110)]

        self.assertEqual(vendePantalones(2, 5, marcaInput), 0)