viff

changeset 884:74860b8b1b98

Switched to double quotes instead of single quotes.
author Martin Geisler <mg@daimi.au.dk>
date Sat, 09 Aug 2008 14:46:01 +0200
parents bc925f4aa978
children 627b709d6907
files viff/test/test_apps.py
diffstat 1 files changed, 12 insertions(+), 12 deletions(-) [+]
line diff
     1.1 --- a/viff/test/test_apps.py	Sat Aug 09 14:43:17 2008 +0200
     1.2 +++ b/viff/test/test_apps.py	Sat Aug 09 14:46:01 2008 +0200
     1.3 @@ -48,10 +48,10 @@
     1.4              os.environ["PYTHONPATH"] += os.pathsep + root_dir
     1.5  
     1.6          self.oldcwd = os.getcwd()
     1.7 -        os.chdir(path.join(root_dir, 'apps'))
     1.8 +        os.chdir(path.join(root_dir, "apps"))
     1.9  
    1.10 -        p = execute('generate-config-files.py', '-n', '3', '-t', '1',
    1.11 -                    'localhost:10000', 'localhost:20000', 'localhost:30000')
    1.12 +        p = execute("generate-config-files.py", "-n", "3", "-t", "1",
    1.13 +                    "localhost:10000", "localhost:20000", "localhost:30000")
    1.14          return p
    1.15  
    1.16      def tearDown(self):
    1.17 @@ -79,9 +79,9 @@
    1.18                  subtext = "\n".join(lines)
    1.19                  self.assertIn(subtext, o)
    1.20  
    1.21 -        m1 = execute('millionaires.py', 'player-1.ini')
    1.22 -        m2 = execute('millionaires.py', 'player-2.ini')
    1.23 -        m3 = execute('millionaires.py', 'player-3.ini')
    1.24 +        m1 = execute("millionaires.py", "player-1.ini")
    1.25 +        m2 = execute("millionaires.py", "player-2.ini")
    1.26 +        m3 = execute("millionaires.py", "player-3.ini")
    1.27          
    1.28          result = gatherResults([m1, m2, m3])
    1.29          result.addCallback(check_outputs)
    1.30 @@ -96,9 +96,9 @@
    1.31                  self.assertIn("opened b: %s" % GF256(40), o)
    1.32                  self.assertIn("opened c: %s" % GF256(235), o)
    1.33  
    1.34 -        p1 = execute('share-open.py', 'player-1.ini', '17')
    1.35 -        p2 = execute('share-open.py', 'player-2.ini', '40')
    1.36 -        p3 = execute('share-open.py', 'player-3.ini', '235')
    1.37 +        p1 = execute("share-open.py", "player-1.ini", "17")
    1.38 +        p2 = execute("share-open.py", "player-2.ini", "40")
    1.39 +        p3 = execute("share-open.py", "player-3.ini", "235")
    1.40          
    1.41          result = gatherResults([p1, p2, p3])
    1.42          result.addCallback(check_outputs)
    1.43 @@ -118,9 +118,9 @@
    1.44              self.assertEqual(lines[0], lines[1])
    1.45              self.assertEqual(lines[1], lines[2])
    1.46  
    1.47 -        p1 = execute('prss-and-open.py', 'player-1.ini')
    1.48 -        p2 = execute('prss-and-open.py', 'player-2.ini')
    1.49 -        p3 = execute('prss-and-open.py', 'player-3.ini')
    1.50 +        p1 = execute("prss-and-open.py", "player-1.ini")
    1.51 +        p2 = execute("prss-and-open.py", "player-2.ini")
    1.52 +        p3 = execute("prss-and-open.py", "player-3.ini")
    1.53          
    1.54          result = gatherResults([p1, p2, p3])
    1.55          result.addCallback(check_outputs)