Example #1
0
    def test_the_estimation_should_be_correct_case7(self):
        # Put some values here
        args = {"Pmax": 270, "GtotalTiltedPlane": 800, "Ta": 21}

        # Fill this with the expected outcome
        expected = {
            "ElectricOutputPower": 193.32
        }

        actual = SolarPV(args).calculate()

        assert expected["ElectricOutputPower"] == actual["ElectricOutputPower"]
Example #2
0
    def test_the_estimation_should_be_correct_case1(self):
        # Put some values here
        args = {"Pmax": 0, "GtotalTiltedPlane": 0, "Gstc": 1, "TempCoef": 0, "Ta": 0, "NOCT": 0, "Tstc": 0}

        # Fill this with the expected outcome
        expected = {
            "ElectricOutputPower": 0
        }

        actual = SolarPV(args).calculate()

        assert expected["ElectricOutputPower"] == actual["ElectricOutputPower"]
Example #3
0
    def test_get_reference(self):
        args = {"Pmax": 270, "GtotalTiltedPlane": 800, "Ta": 21}
        actual = SolarPV(args).get_reference()

        assert actual == " EMD international A/S, Solar Collectors and Photovolotaic in energyPro, 2013 and A. Luque " \
               "and S. Hegedus, Eds., Handbook of photovoltaic science and engineering. Hoboken, NJ: Wiley, 2003."