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'})
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'})
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"}
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"})