File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1313# License for the specific language governing permissions and limitations
1414# under the License.
15+ #
16+ # vim: tabstop=4 shiftwidth=4 softtabstop=4
17+
18+ """
19+ Common client utilities
20+ """
1521
1622import os
1723import uuid
1824
1925import prettytable
2026
21- from glanceclient .common import exceptions
27+ from openstackclient .common import exceptions
2228
2329
2430# Decorator for cli-args
Original file line number Diff line number Diff line change 1212# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1313# License for the specific language governing permissions and limitations
1414# under the License.
15+ #
16+ # vim: tabstop=4 shiftwidth=4 softtabstop=4
17+
18+ """
19+ Server action implementations
20+ """
1521
16- from glanceclient .common import utils
22+ from openstackclient .common import utils
1723
1824
1925def _find_server (cs , server ):
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# vim: tabstop=4 shiftwidth=4 softtabstop=4
22
3+ import time
4+
5+ import mox
36import unittest
47
58
69class TestCase (unittest .TestCase ):
7- pass
10+
11+ def setUp (self ):
12+ super (TestCase , self ).setUp ()
13+ self .mox = mox .Mox ()
14+ self ._original_time = time .time
15+ time .time = lambda : 1234
16+
17+ def tearDown (self ):
18+ time .time = self ._original_time
19+ super (TestCase , self ).tearDown ()
20+ self .mox .UnsetStubs ()
21+ self .mox .VerifyAll ()
You can’t perform that action at this time.
0 commit comments