def test_find_capacity_at_bus_7_solar_ng(self): gen_capacity = _find_capacity_at_bus(self.plant, 7, ("solar", "ng")) self.assertEqual(gen_capacity, 40)
def test_find_capacity_at_bus_7_solar(self): gen_capacity = _find_capacity_at_bus(self.plant, 7, ("solar", )) self.assertEqual(gen_capacity, 20)
def test_find_capacity_at_bus_1_solar_str(self): gen_capacity = _find_capacity_at_bus(self.plant, 1, "solar") self.assertEqual(gen_capacity, 15)
def test_find_capacity_at_bus_2_wind(self): gen_capacity = _find_capacity_at_bus(self.plant, 2, ("wind", )) self.assertEqual(gen_capacity, 0)
def test_find_capacity_at_bus_1_solar_tuple(self): gen_capacity = _find_capacity_at_bus(self.plant, 1, ("solar", )) self.assertEqual(gen_capacity, 15)