def test_records_with_same_name_reversed_order(self):
        store = SchemaStore()

        # Record without namespace will take 2 keys in dict
        store.add_record(TestRecord)
        self.assertEquals(store.get('TestRecord'), TestRecord)
        self.assertEquals(store.get('my.namespace.TestRecord'), TestRecord)

        with warnings.catch_warnings(record=True) as warninglist:
            # Record with namespace will not replace the base level record
            store.add_record(namespaced_schemas.TestRecord)
        self.assertEquals(len(warninglist), 0, msg="there shouldn't be a 'replacement' warning")
        self.assertEquals(store.get('TestRecord'), TestRecord)
        self.assertEquals(store.get('my.namespace.TestRecord'), namespaced_schemas.TestRecord)
Add two records to the store. Both have the same name but different namespace. The one without namespace
dataset/ETHPy150Open spotify/pyschema/test/namespace_test.py/NamespaceTest.test_records_with_same_name_reversed_order