def test_get_active_SSL_TPS_gs(self):
        bigip = mock.MagicMock()
        gs = {
            'Sys::Performance Throughput': {
                'SSL Transactions': {
                    'SSL TPS': {
                        'current': 100
                    }
                }
            }
        }

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