~axino/charm-haproxy/trunk

« back to all changes in this revision

Viewing changes to hooks/tests/test_helpers.py

  • Committer: mergebot at canonical
  • Author(s): "Barry Price"
  • Date: 2019-03-21 15:28:26 UTC
  • mfrom: (121.1.5 charm-haproxy)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20190321152826-kicit95vtrkrqnf0
charm-helpers sync

Reviewed-on: https://code.launchpad.net/~barryprice/charm-haproxy/charm-helpers-sync/+merge/364882
Reviewed-by: Nick Moffitt <nick.moffitt@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
680
680
        safe_load.return_value = [
681
681
            {
682
682
                'service_name': 'foo',
683
 
                'service_options': {
 
683
                'service_options': {  # noqa: F601
684
684
                    'foo-1': 123,
685
685
                },
686
 
                'service_options': ['foo1', 'foo2'],
 
686
                'service_options': ['foo1', 'foo2'],  # noqa: F601
687
687
                'server_options': ['baz1', 'baz2'],
688
688
            },
689
689
            {
724
724
        safe_load.return_value = [
725
725
            {
726
726
                'service_name': 'foo',
727
 
                'service_options': {
 
727
                'service_options': {  # noqa: F601
728
728
                    'foo-1': 123,
729
729
                },
730
 
                'service_options': ['foo1', 'foo2'],
 
730
                'service_options': ['foo1', 'foo2'],  # noqa: F601
731
731
                'server_options': ['baz1', 'baz2'],
732
732
            },
733
733
            {
768
768
        safe_load.return_value = [
769
769
            {
770
770
                'service_name': 'foo',
771
 
                'service_options': {
 
771
                'service_options': {  # noqa: F601
772
772
                    'foo-1': 123,
773
773
                },
774
 
                'service_options': ['foo1', 'foo2'],
 
774
                'service_options': ['foo1', 'foo2'],  # noqa: F601
775
775
                'server_options': 'baz1, baz2',
776
776
            },
777
777
            {
812
812
        safe_load.return_value = [
813
813
            {
814
814
                'service_name': 'foo',
815
 
                'service_options': {
 
815
                'service_options': {  # noqa: F601
816
816
                    'foo-1': 123,
817
817
                },
818
 
                'service_options': ['foo1', 'foo2'],
 
818
                'service_options': ['foo1', 'foo2'],  # noqa: F601
819
819
                'server_options': 'baz1, baz2',
820
820
            },
821
821
            {