diff --git a/tests/unit/plugins/modules/test_mysql_info.py b/tests/unit/plugins/modules/test_mysql_info.py index 6aaf66e2..138bd018 100644 --- a/tests/unit/plugins/modules/test_mysql_info.py +++ b/tests/unit/plugins/modules/test_mysql_info.py @@ -35,3 +35,17 @@ def __cursor_return_value(input_parameter): info = MySQL_Info(MagicMock(), cursor, server_implementation) assert info.get_info([], [], False)['version']['suffix'] == suffix + +def test_is_mariadb(server_implementation): + cursor = MagicMock() + + info = MySQL_Info(MagicMock(), cursor, server_implementation) + + assert info.is_mariadb() == ( server_implementation == "mariadb" ) + +def test_is_mysql(server_implementation): + cursor = MagicMock() + + info = MySQL_Info(MagicMock(), cursor, server_implementation) + + assert info.is_mysql() == ( server_implementation == "mysql" )