<s> from __future__ import absolute_import , unicode_literals <EOL> from mongorest . collection import Collection <EOL> from mongorest . testcase import TestCase <EOL> from mongorest . validator import Validator <EOL> class TestCollectionMeta ( TestCase ) : <EOL> def test_collection_meta_sets_correct_collection_and_schema_and_allow_unknown_and_validator ( self ) : <EOL> self . assertEqual ( Collection . collection , self . db [ '<STR_LIT>' ] ) <EOL> self . assertEqual ( Collection . schema , { } ) <EOL> self . assertTrue ( Collection . allow_unknown ) <EOL> self . assertIsInstance ( Collection . validator , Validator ) <EOL> def test_get_attr_raises_exception_if_can_not_find_attr ( self ) : <EOL> with self . assertRaises ( AttributeError ) : <EOL> Collection . _ ( ) </s>
