<s> from django . db import connections <EOL> from django . test import TestCase <EOL> class IsMariaDBTests ( TestCase ) : <EOL> def test_connections ( self ) : <EOL> for alias in connections : <EOL> connection = connections [ alias ] <EOL> if not hasattr ( connection , '<STR_LIT>' ) : <EOL> continue <EOL> with connection . cursor ( ) as cursor : <EOL> cursor . execute ( "<STR_LIT>" ) <EOL> version = cursor . fetchone ( ) [ <NUM_LIT:0> ] <EOL> is_mariadb = ( '<STR_LIT>' in version ) <EOL> assert connection . is_mariadb == is_mariadb <EOL> assert '<STR_LIT>' in connection . __dict__ </s>
