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.
This commit is contained in:
Peter Hamilton 2014-11-17 07:58:13 -05:00
parent f3c7fb79ca
commit 6a11dacfc3
3 changed files with 50 additions and 8 deletions

View File

@ -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.

View File

@ -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()

View File

@ -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')