

def test_region_for_launch(self):
    launch = self.mox.CreateMockAnything()
    deployment = self.mox.CreateMockAnything()
    self.name = 'RegionOne.prod.cell1'
    launch.deployment().AndReturn(deployment)
    self.mox.ReplayAll()
    region = self.reconciler._region_for_usage(launch)
    self.assertEqual('RegionOne', region)
    self.mox.VerifyAll()

dataset/ETHPy150Open openstack/stacktach/tests/unit/test_reconciler.py ReconcilerTestCase.test_region_for_launch/VarMisuse@30/40 `deployment`->`self`