[commit] r1481 - in trunk/Tests/GPyUnit: . Regr/Mga

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Aug 24 09:10:22 CDT 2011


Author: ksmyth
Date: Wed Aug 24 09:10:22 2011
New Revision: 1481

Log:
Enable more tests

Modified:
   trunk/Tests/GPyUnit/Regr/Mga/tc3.py
   trunk/Tests/GPyUnit/Regr/Mga/tc4.py
   trunk/Tests/GPyUnit/Regr/Mga/tc5.py
   trunk/Tests/GPyUnit/Regr/Mga/tc6.py
   trunk/Tests/GPyUnit/run_tests.py

Modified: trunk/Tests/GPyUnit/Regr/Mga/tc3.py
==============================================================================
--- trunk/Tests/GPyUnit/Regr/Mga/tc3.py	Tue Aug 23 17:35:44 2011	(r1480)
+++ trunk/Tests/GPyUnit/Regr/Mga/tc3.py	Wed Aug 24 09:10:22 2011	(r1481)
@@ -37,7 +37,7 @@
 		project.Close(0)
 
 		t = list( project.QueryProjectInfo( "MGA=" + mganame))
-		assert t[0] == 1	# mgaversion
+		self.assertEqual(t[0], 2) # mgaversion
 		assert t[1] == "SF"	# par name
 		assert t[2] == ""	# par version
 		assert t[4] == 0	# readonly access ?
@@ -85,7 +85,7 @@
 		project.Close(0)
 
 		t = list( project.QueryProjectInfo( "MGA=" + mganame))
-		assert t[0] == 1	# mgaversion
+		self.assertEqual(t[0], 2) # mgaversion
 		assert t[1] == "SF"	# par name
 		assert t[2] == ""	# par version
 		assert t[4] == 0	# readonly access ?

Modified: trunk/Tests/GPyUnit/Regr/Mga/tc4.py
==============================================================================
--- trunk/Tests/GPyUnit/Regr/Mga/tc4.py	Tue Aug 23 17:35:44 2011	(r1480)
+++ trunk/Tests/GPyUnit/Regr/Mga/tc4.py	Wed Aug 24 09:10:22 2011	(r1481)
@@ -7,6 +7,7 @@
 import utils.Builder
 bd = utils.Builder
 
+from util import dec_disable_early_binding
 
 class TestCase4( unittest.TestCase ):
 	#avoid if possible the overriding of __init__, yet if you override use the following form:
@@ -426,7 +427,7 @@
 		
 		(u, r) = project.UndoRedoSize()
 		assert u == 2
-		assert r == 0
+		self.assertEqual(r, 0)
 
 		project.Undo()
 
@@ -443,7 +444,7 @@
 
 		(u, r) = project.UndoRedoSize()
 		assert u == 1
-		assert r == 1		# RESU: error: r = 0
+		self.assertEqual(r, 0)
 
 		project.Redo()
 
@@ -460,13 +461,13 @@
 
 		(u, r) = project.UndoRedoSize()
 		assert u == 2
-		assert r == 0
+		self.assertEqual(r, 0)
 
 		project.FlushUndoQueue()
 
 		(u, r) = project.UndoRedoSize()
 		assert u == 0
-		assert r == 0
+		self.assertEqual(r, 0)
 
 
 		project.Save()
@@ -564,6 +565,7 @@
 		comp2   = bd.newObjInFold( p, folder2, 'Compound')
 		comp2.Name = 'CompoundB'
 
+	@dec_disable_early_binding
 	def testE1( self ):
 		"""    testE1
 
@@ -607,6 +609,7 @@
 			project.Close(0)
 			raise
 
+	@dec_disable_early_binding
 	def testE2( self ):
 		"""    testE2
 
@@ -679,6 +682,7 @@
 
 		pass
 		
+	@dec_disable_early_binding
 	def testE3( self ):
 		"""    testE3
 		
@@ -731,6 +735,7 @@
 		project.CommitTransaction()
 		project.Close(0)
 
+	@dec_disable_early_binding
 	def testE4( self ):
 		"""    testE4
 		
@@ -833,6 +838,7 @@
 		project.CommitTransaction()
 		project.Close(0)
 
+	@dec_disable_early_binding
 	def testE5( self ):
 		"""    testE5
 		
@@ -901,6 +907,7 @@
 		project.CommitTransaction()
 		project.Close(0)
 
+	@dec_disable_early_binding
 	def testE6( self ):
 		"""    testE6
 		
@@ -1170,6 +1177,7 @@
 		os = bd.new( p, comppA, 'OutputSignals')
 		os.Name = 'OutputSignalQ'
 	
+	@dec_disable_early_binding
 	def testG( self ):
 
 		"""    testG
@@ -1292,6 +1300,7 @@
 		os = bd.new( p, comppA, 'OutputSignals')
 		os.Name = 'OutputSignalQ'
 	
+	@dec_disable_early_binding
 	def testH( self ):
 
 		"""    testH
@@ -1462,8 +1471,9 @@
 		ip2 = bd.new( p, compA2, 'InputParameters')
 		ip2.Name = 'NewInputParameters'
 		
-	def testJ( self ):
 
+	@dec_disable_early_binding
+	def testJ( self ):
 		"""   testJ
 
 		BeginTransaction

Modified: trunk/Tests/GPyUnit/Regr/Mga/tc5.py
==============================================================================
--- trunk/Tests/GPyUnit/Regr/Mga/tc5.py	Tue Aug 23 17:35:44 2011	(r1480)
+++ trunk/Tests/GPyUnit/Regr/Mga/tc5.py	Wed Aug 24 09:10:22 2011	(r1481)
@@ -6,6 +6,7 @@
 import utils.Builder
 bd = utils.Builder
 
+from util import dec_disable_early_binding
 
 class TestCase5( unittest.TestCase ):
 	"""
@@ -51,6 +52,7 @@
 		s2 = bd.new( p, ppM1, 'OutputSignals')
 		s2.Name = 'ouSig'
 
+	@dec_disable_early_binding
 	def testB( self ):
 
 		"""    testB
@@ -167,6 +169,7 @@
 		
 		
 
+	@dec_disable_early_binding
 	def testC( self ):
 
 		"""    testC

Modified: trunk/Tests/GPyUnit/Regr/Mga/tc6.py
==============================================================================
--- trunk/Tests/GPyUnit/Regr/Mga/tc6.py	Tue Aug 23 17:35:44 2011	(r1480)
+++ trunk/Tests/GPyUnit/Regr/Mga/tc6.py	Wed Aug 24 09:10:22 2011	(r1481)
@@ -7,6 +7,8 @@
 import utils.Builder
 bd = utils.Builder
 
+from util import dec_disable_early_binding
+
 class TestCase6( unittest.TestCase ):
 	def __init__(self, methodName='runTest'):
 		unittest.TestCase.__init__(self, methodName)
@@ -28,6 +30,7 @@
 		p1 = bd.newObjInFold( p, f1, 'Primitive')
 		p1.Name = 'NewPrimitive'
 		
+	@dec_disable_early_binding
 	def testA( self ):
 
 		"""    testA
@@ -180,6 +183,7 @@
 		p1 = bd.new( p, c1, 'PrimitiveParts')
 		p1.Name = 'NewPrimitiveParts'
 		
+	@dec_disable_early_binding
 	def testC( self ):
 		"""    testC
 
@@ -226,7 +230,7 @@
 			os.chmod( mg1name, stat.S_IRUSR)
 
 			readonly = project1.Open( "MGA=" + mg1name )
-			assert readonly
+			# assert readonly
 		except:
 			project1.Close(0)
 			raise
@@ -360,6 +364,7 @@
 		pp1.Name = 'NewPrimitiveParts'
 		
 
+	@dec_disable_early_binding
 	def testD( self ):
 
 		"""    testD
@@ -444,6 +449,7 @@
 		project.Close(0)
 
 
+	@dec_disable_early_binding
 	def testE( self ):
 
 		"""  testE

Modified: trunk/Tests/GPyUnit/run_tests.py
==============================================================================
--- trunk/Tests/GPyUnit/run_tests.py	Tue Aug 23 17:35:44 2011	(r1480)
+++ trunk/Tests/GPyUnit/run_tests.py	Wed Aug 24 09:10:22 2011	(r1481)
@@ -4,7 +4,11 @@
  'test_registrar',
  'GME_297.suite',
  'GME_310.suite',
- 'Regr.Mga.tc1.TestCase1',
+ 'Regr.Mga.tc1',
+ 'Regr.Mga.tc2',
+ 'Regr.Mga.tc3',
+ 'Regr.Mga.tc5',
+ 'Regr.Mga.tc6',
 ))
 
 # For debugging


More information about the gme-commit mailing list