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