def test_lookup_wall_thickness(self): t = tables_appendix_s.table_s3_wall_thickness(AgeBand.A, WallMaterial.STONE_HARD, WallInsulation.NONE) self.assertEqual(t, 0.5) with self.assertRaises(SAPInputError): t = tables_appendix_s.table_s3_wall_thickness( AgeBand.A, WallMaterial.TIMBER, WallInsulation.EXTERNAL)
def test_lookup_u_values(self): u = tables_appendix_s.lookup_wall_u_values(Country.England, AgeBand.A, WallMaterial.STONE_HARD, WallInsulation.NONE) self.assertEqual(u, 2.4) u = tables_appendix_s.lookup_wall_u_values(Country.Scotland, AgeBand.J, WallMaterial.TIMBER, WallInsulation.INTERNAL) self.assertEqual(u, 0.3) with self.assertRaises(SAPInputError): t = tables_appendix_s.table_s3_wall_thickness(AgeBand.A, WallMaterial.TIMBER, WallInsulation.EXTERNAL)
def test_lookup_u_values(self): u = tables_appendix_s.lookup_wall_u_values(Country.England, AgeBand.A, WallMaterial.STONE_HARD, WallInsulation.NONE) self.assertEqual(u, 2.4) u = tables_appendix_s.lookup_wall_u_values(Country.Scotland, AgeBand.J, WallMaterial.TIMBER, WallInsulation.INTERNAL) self.assertEqual(u, 0.3) with self.assertRaises(SAPInputError): t = tables_appendix_s.table_s3_wall_thickness( AgeBand.A, WallMaterial.TIMBER, WallInsulation.EXTERNAL)
def test_lookup_wall_thickness(self): t = tables_appendix_s.table_s3_wall_thickness(AgeBand.A, WallMaterial.STONE_HARD, WallInsulation.NONE) self.assertEqual(t, 0.5) with self.assertRaises(SAPInputError): t = tables_appendix_s.table_s3_wall_thickness(AgeBand.A, WallMaterial.TIMBER, WallInsulation.EXTERNAL)