Ejemplo n.º 1
0
 def test_set_master(self):
     '''
     Test for set a single config value in the master.cf file
     '''
     with patch.object(postfix, '_parse_master',
                       return_value=({'A': 'a'}, ['b'])):
         with patch.object(postfix, '_write_conf', return_value=None):
             self.assertTrue(postfix.set_master('a', 'b'))
Ejemplo n.º 2
0
 def test_set_master(self):
     '''
     Test for set a single config value in the master.cf file
     '''
     with patch.object(postfix,
                       '_parse_master',
                       return_value=({
                           'A': 'a'
                       }, ['b'])):
         with patch.object(postfix, '_write_conf', return_value=None):
             self.assertTrue(postfix.set_master('a', 'b'))
Ejemplo n.º 3
0
def test_set_master():
    """
    Test for set a single config value in the master.cf file
    """
    with patch.object(postfix,
                      "_parse_master",
                      return_value=({
                          "A": "a"
                      }, ["b"])):
        with patch.object(postfix, "_write_conf", return_value=None):
            assert postfix.set_master("a", "b")