def test_create_with_access(self, mock_boto): result = createAWSClient({ 'region': 'test', 'aws_access_key_id': 1, 'aws_secret_access_key': 'secret' }) mock_boto.assert_called_once_with('lambda', region_name='test', aws_access_key_id=1, aws_secret_access_key='secret') self.assertTrue(result)
def test_create_client(self, mock_boto): result = createAWSClient({'region': 'test'}) mock_boto.assert_called_once_with('lambda', region_name='test') self.assertTrue(result)