def before(self): self.api = main.create_api()
def setUp(self): super(MyTestCase, self).setUp() self.app = create_api()