def test_getusage(self):
        ret = {'message': 'No Random.org api key or api version found.',
               'res': False}
        self.assertDictEqual(random_org.getUsage(), ret)

        self.assertDictEqual(random_org.getUsage(api_key='peW',
                                                 api_version='1'),
                             {'bitsLeft': None, 'requestsLeft': None,
                              'res': True, 'totalBits': None,
                              'totalRequests': None})

    # 'generateIntegers' function tests: 1
Test if it show current usages statistics.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/random_org_test.py/RandomOrgTestCase.test_getusage