def test_login_user(self):
        app = make_test_app(use_cookies=True)
        form_content = {'login': '******', 'password': '******'}
        res = app.post('/login', data=form_content, follow_redirects=True)
        assert res.status.startswith("200"), res
        assert 'fixture' in res.data, res

        form_content = {'login': '******', 'password': '******'}
        res = self.app.post('/login', data=form_content)
        assert res.status.startswith("200"), res
Example #2
0
    def test_login_user(self):
        app = make_test_app(use_cookies=True)
        form_content = {'login': '******', 
                        'password': '******'}
        res = app.post('/login', data=form_content,
                follow_redirects=True)
        assert res.status.startswith("200"), res
        assert 'fixture' in res.data, res

        form_content = {'login': '******', 
                        'password': '******'}
        res = self.app.post('/login', data=form_content)
        assert res.status.startswith("200"), res
 def setUp(self):
     self.app = make_test_app()
     self.make_fixtures()
Example #4
0
 def setUp(self):
     self.app = make_test_app()
     self.make_fixtures()
Example #5
0
 def setUp(self):
     self.app = make_test_app()
Example #6
0
 def setUp(self):
     self.app = make_test_app()
 def setUp(self):
     self.app = make_test_app()
     create_fixture_user(self.app)
Example #8
0
 def setUp(self):
     self.app = make_test_app()
     create_fixture_user(self.app)
     assert core.app.testing
Example #9
0
 def setUp(self):
     self.app = make_test_app()
     create_fixture_user(self.app)