Esempio n. 1
0
 def test_show_main(self):
     '''
     Test for return a dict of active config values
     '''
     with patch.object(postfix, '_parse_main',
                       return_value=({'A': 'a'}, ['b'])):
         self.assertDictEqual(postfix.show_main('path'), {'A': 'a'})
Esempio n. 2
0
def test_show_main():
    """
    Test for return a dict of active config values
    """
    with patch.object(postfix, "_parse_main", return_value=({
            "A": "a"
    }, ["b"])):
        assert postfix.show_main("path") == {"A": "a"}
Esempio n. 3
0
 def test_show_main(self):
     '''
     Test for return a dict of active config values
     '''
     with patch.object(postfix,
                       '_parse_main',
                       return_value=({
                           'A': 'a'
                       }, ['b'])):
         self.assertDictEqual(postfix.show_main('path'), {'A': 'a'})
Esempio n. 4
0
 def test_show_main(self):
     """
     Test for return a dict of active config values
     """
     with patch.object(postfix,
                       "_parse_main",
                       return_value=({
                           "A": "a"
                       }, ["b"])):
         self.assertDictEqual(postfix.show_main("path"), {"A": "a"})