예제 #1
0
 def testTrue( self ):
     args = argparse.Namespace( configfile=None,
                                directory=None,
                                email=False,
                                recursive=False )
     gitcomply = GitComply( args )
     try:
         result = gitcomply.search()
         expected = [ '/home/david/python/gitcomply' ]
         self.assertTrue( result == expected )
     finally:
         pass
예제 #2
0
 def testEqual( self ):
     args = argparse.Namespace( configfile=None,
                                directory=None,
                                email=False,
                                recursive=False )
     gitcomply = GitComply( args )
     try:
         result = gitcomply.report()
         expected = [ 'Everything OK' ]
         self.assertEqual( result == expected )
     finally:
         pass