def test_get_active_connection_count_gs(self):
        bigip = mock.MagicMock()
        gs = {
            'Sys::Performance Connections': {
                'Active Connections': {
                    'Connections': {
                        'current': 100
                    }
                }
            }
        }

        sh = StatHelper()
        conns = sh.get_active_connection_count(bigip, global_stats=gs)
        assert(conns == 100)
 def test_get_active_connection_count_bigip(self):
     bigip = mock.MagicMock()
     bigip.tm.sys.performances.all_stats.load().__dict__ = ALL_STATS_1
     sh = StatHelper()
     conns = sh.get_active_connection_count(bigip)
     assert(conns == 0)