

def test_range_date_week(self):
    object1 = RangeDateWeek.create(name='foo', created=datetime.datetime(2014, 4, 15, 18, 44, 23))
    object2 = list(RangeDateWeek.raw('SELECT * FROM test_rangedateweek_y2014w16 WHERE id = %s', object1.id))[0]
    self.assertTrue(object1.name, object2.name)

dataset/ETHPy150Open maxtepkeev/architect/tests/test_peewee.py PostgresqlPeeweePartitionTestCase.test_range_date_week/original