python3: unittest define main

Code change to unit tests for python3.

partial: https://github.com/vmware/pyvmomi/issues/55
This commit is contained in:
Shawn Hartsock
2014-07-25 13:06:27 -04:00
parent bbff92d788
commit e88f67a4a1
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,4 @@
contextdecorator
mock
PyYAML>=3.11
testtools>=0.9.34
vcrpy

View File

@@ -62,3 +62,6 @@ class ConnectionTests(unittest.TestCase):
# NOTE (hartsock): assertIsNotNone does not work in Python 2.6
self.assertTrue(session_id is not None)
self.assertEqual('52773cd3-35c6-b40a-17f1-fe664a9f08f3', session_id)
if __name__ == '__main__':
unittest.main()