

def test_new_projection(self):
    rec = {
        '@Package': {
            'name': 'foo',
            'version': '1.0.0',
            'rid': 'this_is_fake',
        },
    }
    x = self.client.record_create(9, self)
    assert (x._rid == '#9:0')
    import re
    assert re.match('[0-1]', str(x._version))
    assert (x._class == 'Package')
    assert (x.name == 'foo')
    assert (x.version == '1.0.0')
    assert (x.rid == 'this_is_fake')
    assert (x.oRecordData['name'] == 'foo')
    assert (x.oRecordData['version'] == '1.0.0')
    assert (x.oRecordData['rid'] == 'this_is_fake')

dataset/ETHPy150Open mogui/pyorient/tests/test_reserved_words_batch.py CommandTestCase.test_new_projection/VarMisuse@48/74 `rec`->`self`