def test_get(self): with app.test_client() as c: response = c.get('/community') assert "Community" in response.data assert "community-table" in response.data # Ensure there are at most 5 users shown rows = response.data.count('class="row community-row"') assert rows <= 5
def test_get(self): with app.test_client() as c: response = c.get('/dashboard') assert "Ready to begin assessment" in response.data
def test_get(self): with app.test_client() as c: response = c.get('/community') assert "Users" in response.data
def test_community_response(self): with app.test_client() as c: response = c.get('/community') assert "Recent Signed Users" in response.data
def test_get(self): with app.test_client() as c: response = c.get('/dashboard') assert "Ready to begin assessment" in response.data self.assertEqual(response.status_code, 200)
def test_get(self): with app.test_client() as c: response = c.get('/community') assert "Chuck Norris" in response.data assert "Elvis Presley" in response.data assert "Justin Bieber" in response.data
def test_get(self): with app.test_client() as c: response = c.get('/community') self.assertEqual(response.status_code, 200)