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
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