@ -13,13 +13,13 @@
# under the License.
import unit test
import testtools
from heat . engine import properties
from heat . common import exception
class PropertyTest ( unit test. TestCase ) :
class PropertyTest ( testtools . TestCase ) :
def test_required_default ( self ) :
p = properties . Property ( { ' Type ' : ' String ' } )
self . assertFalse ( p . required ( ) )
@ -256,8 +256,9 @@ class PropertyTest(unittest.TestCase):
self . assertRaises ( TypeError , p . validate_data , [ 42 , ' fish ' ] )
class PropertiesTest ( unit test. TestCase ) :
class PropertiesTest ( testtools . TestCase ) :
def setUp ( self ) :
super ( PropertiesTest , self ) . setUp ( )
schema = {
' int ' : { ' Type ' : ' Integer ' } ,
' string ' : { ' Type ' : ' String ' } ,
@ -301,7 +302,7 @@ class PropertiesTest(unittest.TestCase):
self . assertEqual ( self . props . get ( ' foo ' , ' wibble ' ) , ' wibble ' )
class PropertiesValidationTest ( unit test. TestCase ) :
class PropertiesValidationTest ( testtools . TestCase ) :
def test_required ( self ) :
schema = { ' foo ' : { ' Type ' : ' String ' , ' Required ' : True } }
props = properties . Properties ( schema , { ' foo ' : ' bar ' } )