From 6a11dacfc3d1a74a1c9708f4342fd32292bce501 Mon Sep 17 00:00:00 2001 From: Peter Hamilton Date: Mon, 17 Nov 2014 07:58:13 -0500 Subject: [PATCH] Updating unit test suite This change updates the unit test suite, adding the initial test case framework for factory tests. The attributes test suite is also updated, replacing pass statements with skip calls. --- kmip/tests/core/factories/__init__.py | 14 ++++++++++ .../core/factories/test_attribute_values.py | 28 +++++++++++++++++++ kmip/tests/core/test_attributes.py | 16 +++++------ 3 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 kmip/tests/core/factories/__init__.py create mode 100644 kmip/tests/core/factories/test_attribute_values.py diff --git a/kmip/tests/core/factories/__init__.py b/kmip/tests/core/factories/__init__.py new file mode 100644 index 0000000..87b311e --- /dev/null +++ b/kmip/tests/core/factories/__init__.py @@ -0,0 +1,14 @@ +# Copyright (c) 2014 The Johns Hopkins University/Applied Physics Laboratory +# All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. diff --git a/kmip/tests/core/factories/test_attribute_values.py b/kmip/tests/core/factories/test_attribute_values.py new file mode 100644 index 0000000..8190436 --- /dev/null +++ b/kmip/tests/core/factories/test_attribute_values.py @@ -0,0 +1,28 @@ +# Copyright (c) 2014 The Johns Hopkins University/Applied Physics Laboratory +# All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +from testtools import TestCase + +from kmip.core.factories.attribute_values import AttributeValueFactory + + +class TestAttributeValueFactory(TestCase): + + def setUp(self): + super(TestAttributeValueFactory, self).setUp() + self.factory = AttributeValueFactory() + + def tearDown(self): + super(TestAttributeValueFactory, self).tearDown() diff --git a/kmip/tests/core/test_attributes.py b/kmip/tests/core/test_attributes.py index af0427b..dd6f6fd 100644 --- a/kmip/tests/core/test_attributes.py +++ b/kmip/tests/core/test_attributes.py @@ -28,16 +28,16 @@ class TestNameValue(TestCase): super(TestNameValue, self).tearDown() def test_write_no_padding(self): - pass + self.skip('Not implemented') def test_write_with_padding(self): - pass + self.skip('Not implemented') def test_read_no_padding(self): - pass + self.skip('Not implemented') def test_read_with_padding(self): - pass + self.skip('Not implemented') class TestName(TestCase): @@ -50,13 +50,13 @@ class TestName(TestCase): super(TestName, self).tearDown() def test_minimum_write(self): - pass + self.skip('Not implemented') def test_maximum_write(self): - pass + self.skip('Not implemented') def test_minimum_read(self): - pass + self.skip('Not implemented') def test_maximum_read(self): - pass + self.skip('Not implemented')