Hackfut Security File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
sqlalchemy
/
testing
/
📁
..
📄
__init__.py
(1.12 KB)
📄
__init__.pyc
(1.84 KB)
📄
__init__.pyo
(1.84 KB)
📄
assertions.py
(16.64 KB)
📄
assertions.pyc
(20.71 KB)
📄
assertions.pyo
(19.03 KB)
📄
assertsql.py
(12.29 KB)
📄
assertsql.pyc
(14.05 KB)
📄
assertsql.pyo
(13.78 KB)
📄
config.py
(2.67 KB)
📄
config.pyc
(4.1 KB)
📄
config.pyo
(4.01 KB)
📄
engines.py
(9.29 KB)
📄
engines.pyc
(14.47 KB)
📄
engines.pyo
(14.38 KB)
📄
entities.py
(2.92 KB)
📄
entities.pyc
(3.12 KB)
📄
entities.pyo
(3.12 KB)
📄
exclusions.py
(12.35 KB)
📄
exclusions.pyc
(19.3 KB)
📄
exclusions.pyo
(19.13 KB)
📄
fixtures.py
(10.47 KB)
📄
fixtures.pyc
(16.16 KB)
📄
fixtures.pyo
(16.08 KB)
📄
mock.py
(630 B)
📄
mock.pyc
(664 B)
📄
mock.pyo
(664 B)
📄
pickleable.py
(2.58 KB)
📄
pickleable.pyc
(7.7 KB)
📄
pickleable.pyo
(7.7 KB)
📁
plugin
📄
profiling.py
(8.2 KB)
📄
profiling.pyc
(8.5 KB)
📄
profiling.pyo
(8.5 KB)
📄
provision.py
(10.13 KB)
📄
provision.pyc
(13.72 KB)
📄
provision.pyo
(13.72 KB)
📄
replay_fixture.py
(5.3 KB)
📄
replay_fixture.pyc
(7.5 KB)
📄
replay_fixture.pyo
(7.5 KB)
📄
requirements.py
(22.16 KB)
📄
requirements.pyc
(37.59 KB)
📄
requirements.pyo
(37.59 KB)
📄
runner.py
(1.55 KB)
📄
runner.pyc
(1.84 KB)
📄
runner.pyo
(1.84 KB)
📄
schema.py
(3.47 KB)
📄
schema.pyc
(3.18 KB)
📄
schema.pyo
(3.18 KB)
📁
suite
📄
util.py
(7.36 KB)
📄
util.pyc
(10.67 KB)
📄
util.pyo
(10.63 KB)
📄
warnings.py
(1.27 KB)
📄
warnings.pyc
(1.37 KB)
📄
warnings.pyo
(1.37 KB)
Editing: pickleable.py
# testing/pickleable.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Classes used in pickling tests, need to be at the module level for unpickling. """ from . import fixtures class User(fixtures.ComparableEntity): pass class Order(fixtures.ComparableEntity): pass class Dingaling(fixtures.ComparableEntity): pass class EmailUser(User): pass class Address(fixtures.ComparableEntity): pass # TODO: these are kind of arbitrary.... class Child1(fixtures.ComparableEntity): pass class Child2(fixtures.ComparableEntity): pass class Parent(fixtures.ComparableEntity): pass class Screen(object): def __init__(self, obj, parent=None): self.obj = obj self.parent = parent class Foo(object): def __init__(self, moredata): self.data = 'im data' self.stuff = 'im stuff' self.moredata = moredata __hash__ = object.__hash__ def __eq__(self, other): return other.data == self.data and \ other.stuff == self.stuff and \ other.moredata == self.moredata class Bar(object): def __init__(self, x, y): self.x = x self.y = y __hash__ = object.__hash__ def __eq__(self, other): return other.__class__ is self.__class__ and \ other.x == self.x and \ other.y == self.y def __str__(self): return "Bar(%d, %d)" % (self.x, self.y) class OldSchool: def __init__(self, x, y): self.x = x self.y = y def __eq__(self, other): return other.__class__ is self.__class__ and \ other.x == self.x and \ other.y == self.y class OldSchoolWithoutCompare: def __init__(self, x, y): self.x = x self.y = y class BarWithoutCompare(object): def __init__(self, x, y): self.x = x self.y = y def __str__(self): return "Bar(%d, %d)" % (self.x, self.y) class NotComparable(object): def __init__(self, data): self.data = data def __hash__(self): return id(self) def __eq__(self, other): return NotImplemented def __ne__(self, other): return NotImplemented class BrokenComparable(object): def __init__(self, data): self.data = data def __hash__(self): return id(self) def __eq__(self, other): raise NotImplementedError def __ne__(self, other): raise NotImplementedError
Upload File
Create Folder