def test_none_default_connection(mock_from_mysql_call): mock_from_mysql_call.return_value = '' expected = { 'not_default': '' } result = from_call('mysql', connection='not_default') assert expected == result
def test_unknown_command(): with raises(ValueError): from_call('not_mysql') with raises(ValueError): from_call('')