import util
import verify
-import nose
from nose.plugins.attrib import attr
import unittest
import os
import util
import verify
import re
-import nose
from nose.plugins.attrib import attr
import unittest
import json
import util
import verify
-import nose
from nose.plugins.attrib import attr
import unittest
import os
import util
import verify
-import nose
from nose.plugins.attrib import attr
import unittest
import os
import util
import verify
-import nose
from nose.plugins.attrib import attr
import unittest
import os
import util
import verify
-import nose
from nose.plugins.attrib import attr
import unittest
import os
import util
import verify
-import nose
from nose.plugins.attrib import attr
import unittest
import os
import util
import verify
-import nose
from nose.plugins.attrib import attr
import unittest
import os
#
import util
-import nose
from nose.plugins.attrib import attr
import unittest
import os
import os
import util
import verify
-import nose
from nose.plugins.attrib import attr
import unittest
import time
import util
import verify
-import nose
from nose.plugins.attrib import attr
import unittest
import os
import os
import util
import verify
-import nose
from nose.plugins.attrib import attr
import unittest
# under the License.
-import sys
import os
import optparse
import paramiko
import email
import json
import time # for sleep
-import nose
import errno
import tempfile
import stat
tmp.write(line)
os.chmod(tmp.name, perms)
os.rename(tmp.name, '/etc/hosts')
-
-
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import sys
import socket
-import nose
import json
import unittest
from nose.plugins.attrib import attr
def tearDown(self):
print "teardown complete"
-
-
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import sys
import socket
-import nose
import mox
import json
import unittest
self.m.UnsetStubs()
self.m.VerifyAll()
print "teardown complete"
-
-
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import sys
import socket
-import nose
import mox
import json
import unittest
self.m.UnsetStubs()
self.m.VerifyAll()
print "teardown complete"
-
-
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import sys
-import nose
import mox
import json
import unittest
stack_id=stack_identity.stack_id,
resource_name=res_name, event_id=event_id)
self.m.VerifyAll()
-
-
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import sys
import os
-import nose
import unittest
import mox
import json
resource.resource_id)
resource.delete()
-
- # allows testing of the test directly, shown below
- if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import sys
import os
-import nose
import unittest
import mox
import json
raise Exception('Expected InvalidTemplateAttribute')
self.m.VerifyAll()
-
- # allows testing of the test directly, shown below
- if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import nose
import unittest
from nose.plugins.attrib import attr
for n in ('last', 'mid1', 'mid2', 'mid3'):
self.assertTrue(n in order,
"'%s' not found in dependency order" % n)
-
-
-# allows testing of the test directly, shown below
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import sys
import os
-import nose
import unittest
import mox
import json
resource.delete()
self.m.VerifyAll()
-
- # allows testing of the test directly, shown below
- if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import nose
import unittest
from nose.plugins.attrib import attr
# under the License.
-import sys
import os
-import nose
import unittest
import mox
import json
self.assertRaises(AttributeError,
self.man.set_watch_state,
self.ctx, watch_name="nonexistent", state=state)
-
-
-# allows testing of the test directly
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import nose
import unittest
from nose.plugins.attrib import attr
import mox
def test_event_id(self):
ei = identifier.EventIdentifier('t', 's', 'i', '/resources/p', 'e')
self.assertEqual(ei.event_id, 'e')
-
-
-# allows testing of the test directly, shown below
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import sys
import os
-import nose
import unittest
import mox
import json
self.assertTrue(instance.resource_id is None)
self.assertEqual(instance.state, instance.DELETE_COMPLETE)
self.m.VerifyAll()
-
- # allows testing of the test directly, shown below
- if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
import re
-import sys
import os
-import nose
import unittest
import mox
import json
msg = '%s: %r not found in %r' % (msg,
expected_regexp.pattern, text)
raise self.failureException(msg)
-
- # allows testing of the test directly, shown below
- if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import nose
import unittest
from nose.plugins.attrib import attr
import mox
'AWS::StackName': True}
self.assertEqual(params.map(lambda p: p.has_default()), expected)
-
-
-# allows testing of the test directly, shown below
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import nose
import unittest
from nose.plugins.attrib import attr
import mox
import json
-import sys
from heat.common import context
from heat.common import exception
stack.state_set(stack.CREATE_IN_PROGRESS, 'testing')
self.assertNotEqual(stack.updated_time, None)
self.assertNotEqual(stack.updated_time, stored_time)
-
-# allows testing of the test directly, shown below
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import nose
import pkgutil
import sys
import unittest
schema = {'foo': {'Type': 'String'}}
props = properties.Properties(schema, {'foo': 42})
self.assertNotEqual(props.validate(), None)
-
-
-# allows testing of the test directly, shown below
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import sys
import os
-import nose
import unittest
import mox
import json
resource.delete()
self.m.VerifyAll()
-
- # allows testing of the test directly, shown below
- if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import nose
import unittest
from nose.plugins.attrib import attr
import mox
test_data = {'Test': 'Newly-written data'}
self.res.metadata = test_data
self.assertEqual(self.res.metadata, test_data)
-
-# allows testing of the test directly, shown below
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import sys
import os
import re
-import nose
import unittest
import mox
import json
return
raise Exception('delete_container was called despite Retain policy')
-
- # allows testing of the test directly, shown below
- if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
import json
import mox
-import nose
from nose.plugins.attrib import attr
import os
import re
# under the License.
import mox
-import nose
from nose.plugins.attrib import attr
import StringIO
import unittest
# under the License.
-import sys
import os
import eventlet
import json
-import nose
import mox
import unittest
resource.state)
self.m.VerifyAll()
-
-# allows testing of the test directly, shown below
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-import sys
-import nose
+
+
import unittest
import mox
import json
res = dict(engine.
validate_template(None, t))
self.assertNotEqual(res['Description'], 'Successfully validated')
-
- # allows testing of the test directly, shown below
- if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
# under the License.
-import sys
import os
import eventlet
import json
-import nose
import mox
import unittest
self.m.VerifyAll()
- # allows testing of the test directly, shown below
- if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
-
class FakeVolume:
status = 'attaching'
# under the License.
-import sys
-
-import nose
import unittest
import mox
self.assertEqual(None, resource.delete())
self.m.VerifyAll()
-
- # allows testing of the test directly, shown below
- if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
import json
import mox
-import sys
import uuid
import time
import eventlet
-import nose
import unittest
from nose.plugins.attrib import attr
from heat.tests import fakes
stack.delete()
self.m.VerifyAll()
-
-# allows testing of the test directly
-if __name__ == '__main__':
- sys.argv.append(__file__)
- nose.main()
import datetime
import mox
-import nose
from nose.plugins.attrib import attr
from nose import with_setup
import unittest