Hide warning for old style attribute schema test

Change-Id: I6a3d0464bffe65f8ef7ab9006882cbeaa03cc20d
This commit is contained in:
Sergey Kraynev 2014-05-30 08:53:52 -04:00
parent fcf2504835
commit 4660f09571

View File

@ -11,6 +11,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock
import testtools import testtools
from heat.engine import attributes from heat.engine import attributes
@ -59,6 +60,7 @@ class AttributeSchemaTest(testtools.TestCase):
attrs._attributes['bar_dep'].support_status().message) attrs._attributes['bar_dep'].support_status().message)
def test_old_attribute_schema_format(self): def test_old_attribute_schema_format(self):
with mock.patch('heat.engine.attributes.warnings'):
s = 'Test description.' s = 'Test description.'
self.assertIsInstance(attributes.Schema.from_attribute(s), self.assertIsInstance(attributes.Schema.from_attribute(s),
attributes.Schema) attributes.Schema)