def METHOD_NAME(self, name):
    count = 0
    ns = self.sms.get_namespace(name)
    while ns.status != 'Active':
        count = count + 1
        if count > 120:
            self.assertTrue(
                False,
                'Timed out waiting for service bus namespace activation.')
        time.sleep(5)
        ns = self.sms.get_namespace(name)