Lines Matching refs:manager
43 def migrate_up(self, manager): argument
46 manager.create_migrate_table()
49 def migrate_down(self, manager): argument
72 self.manager = TestableMigrationManager(self._database)
81 self.manager.do_sync_db()
82 self.assertEquals(self.manager.get_db_version(), NUM_MIGRATIONS)
87 self.manager.do_sync_db(0)
88 self.assertEquals(self.manager.get_db_version(), 0)
95 self.manager.do_sync_db(version)
96 self.assertEquals(self.manager.get_db_version(),
103 self.manager.do_sync_db(version)
104 self.assertEquals(self.manager.get_db_version(),
112 self.manager.do_sync_db()
114 self.manager.do_sync_db()
129 self.manager = DummyMigrationManager()
134 migration.migrate_up(self.manager)
135 migration.migrate_down(self.manager)
137 self.assertEquals(self.manager.calls, ['foo', 'bar'])
143 def migrate_up(manager): argument
144 manager.execute_script('foo')
148 def migrate_down(manager): argument
149 manager.execute_script('bar')