Beispiel #1
0
 def test_missing_solar_in_DK1(self):
     validated = validate_production(p13, self.test_logger)
     self.assertEqual(validated, None)
Beispiel #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'])
Beispiel #3
0
 def test_production_too_low_in_PL(self):
     validated = validate_production(p11, self.test_logger)
     self.assertEqual(validated, None)
Beispiel #4
0
 def test_production_too_high_in_SI(self):
     validated = validate_production(p12, self.test_logger)
     self.assertEqual(validated, None)
Beispiel #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"])
Beispiel #6
0
 def test_missing_required_biomass_in_DE(self):
     validated = validate_production(p10, self.test_logger)
     self.assertEqual(validated, None)
 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'])
 def test_missing_solar_in_DK1(self):
     validated = validate_production(p13, self.test_logger)
     self.assertEqual(validated, None)
 def test_production_too_high_in_SI(self):
     validated = validate_production(p12, self.test_logger)
     self.assertEqual(validated, None)
 def test_production_too_low_in_PL(self):
     validated = validate_production(p11, self.test_logger)
     self.assertEqual(validated, None)
 def test_missing_required_biomass_in_DE(self):
     validated = validate_production(p10, self.test_logger)
     self.assertEqual(validated, None)