~viswesn/juju-ci-tools/aws_boto3

« back to all changes in this revision

Viewing changes to tests/test_gotestwin.py

  • Committer: Curtis Hovey
  • Date: 2017-02-23 19:16:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1905.
  • Revision ID: curtis@canonical.com-20170223191613-sa0tpmoce47yb33a
Run the remote installation of gotesttarfile.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
S3_CI_PATH = os.path.join(gotestwin.SCRIPTS, 's3ci.py')
15
15
JUJU_HOME = os.path.normpath(os.path.join(
16
16
    gotestwin.SCRIPTS, '..', 'cloud-city'))
 
17
REMOTE_SCRIPT = (
 
18
    'c:\\\\Users\\\\Administrator\\\\juju-ci-tools\\\\gotesttarfile.py')
17
19
 
18
20
 
19
21
@contextlib.contextmanager
38
40
                with open('temp-config.yaml') as f:
39
41
                    data = json.load(f)
40
42
        self.assertEqual(
41
 
            ['python', 'ci/gotesttarfile.py', '-v', '-g', 'go.exe', '-p',
 
43
            ['python', REMOTE_SCRIPT, '-v', '-g', 'go.exe', '-p',
42
44
             'github.com/juju/juju', '--remove', 'ci/foo.tar.gz'],
43
45
            data['command'])
44
46
        co_mock.assert_called_once_with(
62
64
                with open('temp-config.yaml') as f:
63
65
                    data = json.load(f)
64
66
        self.assertEqual(
65
 
            ['python', 'ci/gotesttarfile.py', '-v', '-g', 'go.exe', '-p',
 
67
            ['python', REMOTE_SCRIPT, '-v', '-g', 'go.exe', '-p',
66
68
             'github.com/juju/juju/cmd', '--remove', 'ci/bar.tar.gz'],
67
69
            data['command'])
68
70
        cc_mock.assert_called_once_with(