

def test_bound_metadata(self):
    url = RangeDateDay.architect.partition.options.pop('db')
    RangeDateDay.metadata.bind = engine
    self.session.add(RangeDateDay(name='foo', created=datetime.datetime(2014, 4, 15, 18, 44, 23)))
    self.session.commit()
    self.session.rollback()
    RangeDateDay.metadata.bind = None
    RangeDateDay.architect.partition.options['db'] = url

dataset/ETHPy150Open maxtepkeev/architect/tests/test_sqlalchemy.py BaseSqlAlchemyPartitionTestCase.test_bound_metadata/original