Example #1
0
 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
Example #2
0
 def test_get(self):
     with app.test_client() as c:
         response = c.get('/dashboard')
         assert "Ready to begin assessment" in response.data
Example #3
0
 def test_get(self):
     with app.test_client() as c:
         response = c.get('/community')
         assert "Users" in response.data
Example #4
0
 def test_community_response(self):
     with app.test_client() as c:
         response = c.get('/community')
         assert "Recent Signed Users" in response.data
Example #5
0
 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)
Example #6
0
 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)