def test_list(self): ctx = app.test_request_context() ctx.push() r = app.test_client().get(url_for('root')) self.assertEqual( r.status_code, 200 )
def setUp(self): self.client = app.test_client() ctx = app.test_request_context() ctx.push()
def setUpClass(cls): cls.client = app.test_client() cls.wallet = Wallet.query.filter(Wallet.label=='box1').first() cls.conn = get_connection(cls.wallet) cls.account = 'testaccount-%s' % datetime.datetime.now().isoformat() cls.info = cls.conn.getinfo()
def setUpClass(cls): cls.client = app.test_client() cls.wallet = Wallet.query.filter(Wallet.label == 'box1').first() cls.conn = get_connection(cls.wallet) cls.account = 'testaccount-%s' % datetime.datetime.now().isoformat() cls.info = cls.conn.getinfo()
def setUp(self): self.client = app.test_client()
def test_list(self): ctx = app.test_request_context() ctx.push() r = app.test_client().get(url_for('root')) self.assertEqual(r.status_code, 200)