Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #7
0
def test_is_false():
    false = False
    assert is_false(false) == False