def test_gate1_open(self): fff.gate1_open() assert ffc.gate1.position == 100 assert ffc.gate1.flow_in == 19542.86939891452 assert ffc.gate1.press_in == 13.109851301499999 assert ffc.gate1.flow_out == 19542.86939891452 assert ffc.gate1.press_out == 13.109851301499999
def setup_class(cls): ffc.tank2.level = 18.0 fff.change_tank_level(ffc.tank2, ffc.tank2.level) fff.gate1_open() fff.gate2_open() fff.gate3_open() fff.gate4_open()
def test_gate4_gate3(self): fff.gate1_open() fff.gate2_open() fff.gate3_open() fff.gate4_open() assert ffc.gate1.position == 100 assert ffc.gate2.position == 100 assert ffc.gate3.position == 100 assert ffc.gate4.position == 100 assert ffc.gate4.flow_in == 19542.86939891452 assert ffc.gate4.press_in == 13.109851301499999 assert ffc.gate4.flow_out == 19542.86939891452 assert ffc.gate4.press_out == 13.109851301499999 assert ffc.gate6.flow_in == 39085.73879782904 assert ffc.gate6.press_in == 13.109851301499999 assert ffc.gate3.flow_in == 19542.86939891452 assert ffc.gate3.press_in == 13.109851301499999 fff.gate4_close() assert ffc.gate4.position == 0 assert ffc.gate4.flow_out == 0.0 assert ffc.gate4.press_out == 0.0 assert ffc.gate6.flow_in == 19542.86939891452 assert ffc.gate6.press_in == 13.109851301499999 assert ffc.gate3.flow_in == 19542.86939891452 assert ffc.gate3.press_in == 13.109851301499999
def test_gate3_operation(self): fff.gate1_open() assert ffc.gate1.position == 100 assert ffc.gate1.flow_out == 19542.86939891452 assert ffc.gate1.press_out == 13.109851301499999 assert ffc.gate2.position == 0 assert ffc.gate2.flow_out == 0.0 assert ffc.gate2.press_out == 0.0 assert ffc.gate4.position == 0 assert ffc.gate4.press_out == 0.0 assert ffc.gate4.flow_out == 0.0 fff.gate3_open() assert ffc.gate3.position == 100 assert ffc.gate3.flow_in == 19542.86939891452 assert ffc.gate3.press_in == 13.109851301499999 assert ffc.gate3.flow_out == 19542.86939891452 assert ffc.gate3.press_out == 13.109851301499999 fff.gate6_close() assert ffc.gate6.flow_in == 19542.86939891452 assert ffc.gate6.press_in == 13.109851301499999 assert ffc.gate4.flow_in == 19542.86939891452 assert ffc.gate4.press_in == 13.109851301499999 fff.gate3_close() assert ffc.gate3.position == 0 assert ffc.gate3.flow_out == 0.0 assert ffc.gate3.press_out == 0.0 assert ffc.gate6.flow_in == 0.0 assert ffc.gate6.press_in == 0.0 assert ffc.gate4.flow_in == 0.0 assert ffc.gate4.press_in == 0.0
def test_pump1_tank1_flow(self): fff.gate1_open() fff.gate5_open() ffc.pump1.adjust_speed(1480) ffc.pump1.outlet_pressure = 60.0 assert ffc.gate1.position == 100 assert ffc.gate1.flow_out == 19542.86939891452 assert ffc.gate1.press_out == 13.109851301499999 assert ffc.gate5.position == 100 assert ffc.gate5.flow_in == 19542.86939891452 assert ffc.gate5.flow_out == 19542.86939891452 assert ffc.gate5.press_in == 13.109851301499999 assert ffc.gate5.press_out == 13.109851301499999 assert ffc.pump1.speed == 1480 assert ffc.pump1.head_in == 30.24018195875 assert ffc.pump1.flow == 355.2 assert ffc.pump1.outlet_pressure == 60.0
def setup_class(cls): fff.gate1_open() fff.gate2_close() fff.gate3_close() fff.gate4_close() fff.gate5_open()