def test_register_cant_find(self):
     migrations.clear()
     m = migrations.find("SampleMigration")
     self.assertEquals(m, None)
 def test_register_clear(self):
     migrations.clear()
     migrations.register(SampleMigration)
     migrations.clear()
     ms = migrations.all()
     self.assertEquals(len(ms), 0)
 def test_register_find(self):
     migrations.clear()
     migrations.register(SampleMigration)
     m = migrations.find("SampleMigration")
     self.assertTrue(m.__name__, "SampleMigration")