File: test_mgmt_redis.py

package info (click to toggle)
python-azure 20230112%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 749,544 kB
  • sloc: python: 6,815,827; javascript: 287; makefile: 195; xml: 109; sh: 105
file content (23 lines) | stat: -rw-r--r-- 710 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#--------------------------------------------------------------------------
import unittest

import azure.mgmt.redis
from devtools_testutils import AzureMgmtRecordedTestCase, recorded_by_proxy

AZURE_LOCATION ='eastus'

class TestMgmtSubscription(AzureMgmtRecordedTestCase):
    def setup_method(self, method):
        self.mgmt_client = self.create_mgmt_client(
            azure.mgmt.redis.RedisManagementClient
        )

    @recorded_by_proxy
    def test_redis_list(self):
        result = self.mgmt_client.redis.list_by_subscription()
        assert list(result) is not None


#------------------------------------------------------------------------------
if __name__ == '__main__':
    unittest.main()