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