Exemple #1
0
 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)
Exemple #2
0
 def test_find_capacity_at_bus_7_solar(self):
     gen_capacity = _find_capacity_at_bus(self.plant, 7, ("solar", ))
     self.assertEqual(gen_capacity, 20)
Exemple #3
0
 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)
Exemple #4
0
 def test_find_capacity_at_bus_2_wind(self):
     gen_capacity = _find_capacity_at_bus(self.plant, 2, ("wind", ))
     self.assertEqual(gen_capacity, 0)
Exemple #5
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)