コード例 #1
0
 def test_register_cant_find(self):
     migrations.clear()
     m = migrations.find("SampleMigration")
     self.assertEquals(m, None)
コード例 #2
0
 def test_register_clear(self):
     migrations.clear()
     migrations.register(SampleMigration)
     migrations.clear()
     ms = migrations.all()
     self.assertEquals(len(ms), 0)
コード例 #3
0
 def test_register_find(self):
     migrations.clear()
     migrations.register(SampleMigration)
     m = migrations.find("SampleMigration")
     self.assertTrue(m.__name__, "SampleMigration")