示例#1
0
 def test_no_module(self):
     test_dir = os.path.dirname( __file__ )
     loader = pygrate.loader.PygrationLoader( test_dir, 'vasdf' )
     try:
         loader.load()
     except:
         # this should assert an exception was thrown somehow
         pass
     else:
         failure( "no exception" )
     loader.pygrations()
示例#2
0
 def test_bad_type(self):
     test_dir = os.path.dirname( __file__ )
     loader = pygrate.loader.PygrationLoader( test_dir, 'v0-7' )
     loader.load()
     loader.pygrations()