Пример #1
0
 def teardown(cls):
     fff.gate1_close()
     fff.gate3_close()
     fff.gate5_close()
     fff.gate2_close()
     fff.gate4_close()
     ffc.pump1.adjust_speed(0)
Пример #2
0
    def test_gate5_tank2(self):
        fff.gate1_close()
        assert ffc.gate1.position == 0
        assert ffc.gate1.flow_out == 0.0
        assert ffc.gate1.press_out == 0.0

        fff.gate2_open()
        assert ffc.gate2.position == 100
        assert ffc.gate2.flow_out == 19542.86939891452
        assert ffc.gate2.press_out == 13.109851301499999

        fff.gate4_open()
        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

        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
        assert ffc.gate6.flow_in == 39085.73879782904
        assert ffc.gate6.press_in == 13.109851301499999

        fff.gate5_open()
        assert ffc.gate5.position == 100
        assert ffc.gate5.flow_in == 19542.86939891452
        assert ffc.gate5.press_in == 13.109851301499999
        assert ffc.gate5.flow_out == 19542.86939891452
        assert ffc.gate5.press_out == 13.109851301499999
        assert ffc.pump1.head_in == 30.24018195875

        fff.gate2_close()
        assert ffc.gate2.position == 0
        assert ffc.gate2.flow_out == 0.0
        assert ffc.gate2.press_out == 0.0

        fff.gate4_open()
        fff.gate3_open()  # Resets output values
        assert ffc.gate3.position == 100
        assert ffc.gate3.flow_in == 0.0
        assert ffc.gate3.press_in == 0.0
        assert ffc.gate3.flow_out == 0.0
        assert ffc.gate3.press_out == 0.0

        assert ffc.gate4.position == 100
        assert ffc.gate4.flow_in == 0.0
        assert ffc.gate4.press_in == 0.0
        assert ffc.gate4.flow_out == 0.0
        assert ffc.gate4.press_out == 0.0

        assert ffc.gate6.flow_in == 0.0
        assert ffc.gate6.press_in == 0.0
Пример #3
0
    def test_gate4_flow_in(self):
        fff.gate2_open()
        assert ffc.gate1.position == 0
        assert ffc.gate2.position == 100
        assert ffc.gate3.position == 0
        assert ffc.gate4.flow_in == 19542.86939891452
        assert ffc.gate4.press_in == 13.109851301499999
        assert ffc.gate4.flow_out == 0.0
        assert ffc.gate4.press_out == 0.0

        fff.gate2_close()
        assert ffc.gate2.position == 0
        assert ffc.gate4.flow_in == 0.0
        assert ffc.gate4.press_in == 0.0
        assert ffc.gate4.flow_out == 0.0
        assert ffc.gate4.press_out == 0.0
Пример #4
0
 def setup_class(cls):
     fff.gate2_close()
     fff.gate4_close()
     fff.gate1_close()
     fff.gate3_close()
Пример #5
0
 def setup_class(cls):
     fff.gate2_close()