"""Test cloudwatch connector.""" import boto3 from video import config from video.connectors import cloudwatch def test_get_cloudwatch_client(mocker): """Test get_cloudwatch_client.""" mocker.patch.object(boto3, 'client', autospec=True, return_value='abc') mocker.patch.object(boto3.session, 'Config', autospec=True) assert 'abc' == cloudwatch.get_cloudwatch_client() boto3.client.assert_called_once_with( 'cloudwatch', region_name=config.AWS_REGION, )