Example #1
0
    def test_as_dict(self):
        status_dict = session_status.as_dict()

        assert 'Compression' in status_dict  # status only variable (on 5.7+)

        assert isinstance(status_dict['Threads_running'], int)
        assert status_dict['Threads_running'] >= 1
    def test_as_dict(self):
        status_dict = session_status.as_dict()

        assert 'Compression' in status_dict  # status only variable (on 5.7+)

        assert isinstance(status_dict['Threads_running'], int)
        assert status_dict['Threads_running'] >= 1
    def test_as_dict(self):
        status_dict = session_status.as_dict()

        assert 'Compression' in status_dict

        assert isinstance(status_dict['Threads_running'], int)
        assert status_dict['Threads_running'] >= 1
Example #4
0
    def test_as_dict(self):
        status_dict = session_status.as_dict()

        self.assertIn('Compression', status_dict)

        self.assertTrue(isinstance(status_dict['Threads_running'], int))
        self.assertGreaterEqual(status_dict['Threads_running'], 1)