Пример #1
0
 def test_missing_solar_in_DK1(self):
     validated = validate_production(p13, self.test_logger)
     self.assertEqual(validated, None)
Пример #2
0
 def test_valid_production_in_FI(self):
     validated = validate_production(p14, self.test_logger)
     self.assertNotEqual(validated, None)
     self.assertTrue('production' in validated)
     self.assertTrue('hydro' in validated['production'])
Пример #3
0
 def test_production_too_low_in_PL(self):
     validated = validate_production(p11, self.test_logger)
     self.assertEqual(validated, None)
Пример #4
0
 def test_production_too_high_in_SI(self):
     validated = validate_production(p12, self.test_logger)
     self.assertEqual(validated, None)
Пример #5
0
 def test_valid_production_in_FI(self):
     validated = validate_production(p14, self.test_logger)
     self.assertNotEqual(validated, None)
     self.assertTrue("production" in validated)
     self.assertTrue("hydro" in validated["production"])
Пример #6
0
 def test_missing_required_biomass_in_DE(self):
     validated = validate_production(p10, self.test_logger)
     self.assertEqual(validated, None)
Пример #7
0
 def test_valid_production_in_FI(self):
     validated = validate_production(p14, self.test_logger)
     self.assertNotEqual(validated, None)
     self.assertTrue('production' in validated)
     self.assertTrue('hydro' in validated['production'])
Пример #8
0
 def test_missing_solar_in_DK1(self):
     validated = validate_production(p13, self.test_logger)
     self.assertEqual(validated, None)
Пример #9
0
 def test_production_too_high_in_SI(self):
     validated = validate_production(p12, self.test_logger)
     self.assertEqual(validated, None)
Пример #10
0
 def test_production_too_low_in_PL(self):
     validated = validate_production(p11, self.test_logger)
     self.assertEqual(validated, None)
Пример #11
0
 def test_missing_required_biomass_in_DE(self):
     validated = validate_production(p10, self.test_logger)
     self.assertEqual(validated, None)