def test_backwards_compat(self, *mocks): config = load_config(parser.parse_args(['-c', devnull, 'send', ''])) self.assertIn('backends', config) self.assertEqual(config['backends'], ['foobar'])
def test_default_config(self, *mocks): config = load_config(parser.parse_args(['-c', devnull, 'send', ''])) self.assertEqual(config, {'backends': ['default']})