ensure that Arista test destroys the database

Out of order test execution has revealed that the database was not
properly cleaned up after each test run.  This patch adds a call to
clear the database after each test.

Fixes bug: 1220784

Change-Id: I8a706887f89f21ede88177e441a3b562fd8f74dc
This commit is contained in:
Mark McClain 2013-09-04 14:36:11 -04:00
parent 062ee16e09
commit 9b76de161d
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class AristaProvisionedVlansStorageTestCase(base.BaseTestCase):
def setUp(self):
super(AristaProvisionedVlansStorageTestCase, self).setUp()
ndb.configure_db()
self.addCleanup(ndb.clear_db)
def test_tenant_is_remembered(self):
tenant_id = 'test'