Exemple #1
0
 def generate_rf(self):
     t = self.cleaned_data['return_fan_type']
     if not is_false(t):
         self.add_component_to_ahu(t, models.ReturnFan)
Exemple #2
0
 def generate_ef(self):
     t = self.cleaned_data['exhaust_fan_type']
     if not is_false(t):
         self.add_component_to_ahu(t, models.ExhaustFan)
Exemple #3
0
 def generate_df(self):
     t = self.cleaned_data['discharge_fan_type']
     if not is_false(t):
         self.add_component_to_ahu(t, models.DischargeFan)
Exemple #4
0
 def generate_shc(self):
     t = self.cleaned_data['supp_heat_coil']
     if not is_false(t):
         self.add_component_to_ahu(t, models.SupplementaryHeatingCoil)
Exemple #5
0
 def generate_phc(self):
     t = self.cleaned_data['pre_heat_coil']
     if not is_false(t):
         self.add_component_to_ahu(t, models.PreHeatCoil)
Exemple #6
0
 def generate_cc(self):
     t = self.cleaned_data['cooling_coil_type']
     if not is_false(t):
         self.add_component_to_ahu(t, models.CoolingCoil)
Exemple #7
0
def test_is_false():
    false = False
    assert is_false(false) == False