示例#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)
示例#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)
示例#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)
示例#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)
示例#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)