~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to test_deploy_stack.py

  • Committer: Curtis Hovey
  • Date: 2015-07-28 00:25:51 UTC
  • Revision ID: curtis@canonical.com-20150728002551-atw6nivr8eaxxmaf
Skip tests that are not supported by the platform (windows and os x).

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
import logging
7
7
import os
8
8
import subprocess
9
 
from unittest import TestCase
 
9
import sys
 
10
from unittest import (
 
11
    skipIf,
 
12
    TestCase
 
13
)
10
14
 
11
15
from mock import (
12
16
    call,
512
516
 
513
517
class TestDeployJob(TestCase):
514
518
 
 
519
    @skipIf(sys.platform in ('win32', 'darwin'),
 
520
            'Not supported on Windown and OS X')
515
521
    @patch('jujupy.EnvJujuClient.by_version', side_effect=fake_EnvJujuClient)
516
522
    @patch('jujupy.SimpleEnvironment.from_config',
517
523
           side_effect=fake_SimpleEnvironment)
527
533
        self.assertEqual(bc_mock.mock_calls[0][1][2], 'log')
528
534
        self.assertEqual(bc_mock.mock_calls[0][1][3], 1)
529
535
 
 
536
    @skipIf(sys.platform in ('win32', 'darwin'),
 
537
            'Not supported on Windown and OS X')
530
538
    @patch('jujupy.EnvJujuClient.by_version', side_effect=fake_EnvJujuClient)
531
539
    @patch('jujupy.SimpleEnvironment.from_config',
532
540
           side_effect=fake_SimpleEnvironment)