Example #1
0
 def test_show_master(self):
     '''
     Test for return a dict of active config values
     '''
     with patch.object(postfix, '_parse_master',
                       return_value=({'A': 'a'}, ['b'])):
         self.assertDictEqual(postfix.show_master('path'), {'A': 'a'})
Example #2
0
 def test_show_master(self):
     '''
     Test for return a dict of active config values
     '''
     with patch.object(postfix,
                       '_parse_master',
                       return_value=({
                           'A': 'a'
                       }, ['b'])):
         self.assertDictEqual(postfix.show_master('path'), {'A': 'a'})
Example #3
0
def test_show_master():
    """
    Test for return a dict of active config values
    """
    with patch.object(postfix,
                      "_parse_master",
                      return_value=({
                          "A": "a"
                      }, ["b"])):
        assert postfix.show_master("path") == {"A": "a"}
Example #4
0
 def test_show_master(self):
     """
     Test for return a dict of active config values
     """
     with patch.object(postfix,
                       "_parse_master",
                       return_value=({
                           "A": "a"
                       }, ["b"])):
         self.assertDictEqual(postfix.show_master("path"), {"A": "a"})