Esempio n. 1
0
    def test_multiple_filter_conditions_match(self):
        value = proc.num(name=PROCESS_NAME, state=PROCESS_STATE,
                         host_os=self.host_os)

        assert_greater(len(self.processes), value)
Esempio n. 2
0
    def test_user_filter_works(self):
        value = proc.num(state=PROCESS_STATE, host_os=self.host_os)

        assert_greater(len(self.processes), value)
Esempio n. 3
0
    def test_user_filter_works(self):
        value = proc.num(cmdline=PROCESS_COMMAND_LINE, host_os=self.host_os)

        assert_greater(len(self.processes), value)
Esempio n. 4
0
 def test_returns_float_less_than_hundred(self):
     for state in CPU_TIMES:
         percent = cpu.util('all', state=state, host_os=self.host_os)
         assert_is_instance(percent, float)
         assert_greater(100, percent)
Esempio n. 5
0
    def test_name_filter_works(self):
        value = proc.num(name=PROCESS_NAME, host_os=self.host_os)

        assert_greater(len(self.processes), value)
Esempio n. 6
0
    def test_multiple_filter_conditions_match(self):
        value = proc.num(name=PROCESS_NAME,
                         state=PROCESS_STATE,
                         host_os=self.host_os)

        assert_greater(len(self.processes), value)
Esempio n. 7
0
    def test_user_filter_works(self):
        value = proc.num(cmdline=PROCESS_COMMAND_LINE, host_os=self.host_os)

        assert_greater(len(self.processes), value)
Esempio n. 8
0
    def test_user_filter_works(self):
        value = proc.num(state=PROCESS_STATE, host_os=self.host_os)

        assert_greater(len(self.processes), value)
Esempio n. 9
0
    def test_name_filter_works(self):
        value = proc.num(name=PROCESS_NAME, host_os=self.host_os)

        assert_greater(len(self.processes), value)
Esempio n. 10
0
 def test_returns_float_less_than_hundred(self):
     for state in CPU_TIMES:
         percent = cpu.util('all', state=state, host_os=self.host_os)
         assert_is_instance(percent, float)
         assert_greater(100, percent)