def test_03_add_config_with_existing(self, mock_client): mock_client.return_value = self._kinesisAnalytics from lambda_function import _add_vpc_configuration response = _add_vpc_configuration('test-application', ['subnet-abc'], ['sg-abc']) self.assertEqual('vpc-version-b', response)
def test_01_add_config_noop(self, mock_client): mock_client.return_value = self._kinesisAnalytics from lambda_function import _add_vpc_configuration response = _add_vpc_configuration('test-application', [''], ['']) self.assertIsNone(response)