diff options
| author | Jason Kölker <jason@koelker.net> | 2011-05-31 18:16:30 -0500 |
|---|---|---|
| committer | Jason Kölker <jason@koelker.net> | 2011-05-31 18:16:30 -0500 |
| commit | 37ad81c6fe5cc3799d301f326b5bf231e5b468dc (patch) | |
| tree | c708d333727233c4446f3b8d61953f35b05b7f8c | |
| parent | 8797933e5977b289ccc1a626ed60c10b8527f99b (diff) | |
add new base
| -rw-r--r-- | nova/tests/network/base.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/nova/tests/network/base.py b/nova/tests/network/base.py new file mode 100644 index 000000000..460624cba --- /dev/null +++ b/nova/tests/network/base.py @@ -0,0 +1,39 @@ +# vim: tabstop=4 shiftwidth=4 softtabstop=4 + +# Copyright 2011 Rackspace +# 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 nova import db +from nova import flags +from nova import log as logging +from nova import test + + +FLAGS = flags.FLAGS +LOG = logging.getLogger('nova.tests.network') + + +class NetworkTestCase(test.TestCase): + def setUp(self): + super(NetworkTestCase, self).setUp() + self.flags(connection_type='fake', + fake_call=True, + fake_network=True) + self.manager = manager.AuthManager() + self.user = self.manager.create_user('netuser', + 'netuser', + 'netuser') + self.projects = [] |
