<s> """<STR_LIT>""" <EOL> import sys <EOL> sys . path [ <NUM_LIT:0> : <NUM_LIT:0> ] = [ "<STR_LIT>" ] <EOL> import unittest <EOL> import warnings <EOL> from mongoengine import * <EOL> __all__ = ( '<STR_LIT>' , ) <EOL> class AllWarnings ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> connect ( db = '<STR_LIT>' ) <EOL> self . warning_list = [ ] <EOL> self . showwarning_default = warnings . showwarning <EOL> warnings . showwarning = self . append_to_warning_list <EOL> def append_to_warning_list ( self , message , category , * args ) : <EOL> self . warning_list . append ( { "<STR_LIT:message>" : message , <EOL> "<STR_LIT>" : category } ) <EOL> def tearDown ( self ) : <EOL> warnings . showwarning = self . showwarning_default <EOL> def test_document_collection_syntax_warning ( self ) : <EOL> class NonAbstractBase ( Document ) : <EOL> meta = { '<STR_LIT>' : True } <EOL> class InheritedDocumentFailTest ( NonAbstractBase ) : <EOL> meta = { '<STR_LIT>' : '<STR_LIT>' } <EOL> warning = self . warning_list [ <NUM_LIT:0> ] <EOL> self . assertEqual ( SyntaxWarning , warning [ "<STR_LIT>" ] ) <EOL> self . assertEqual ( '<STR_LIT>' , <EOL> InheritedDocumentFailTest . _get_collection_name ( ) ) </s>
