Ejemplo n.º 1
0
 def testTableIndex(self):
     all = Table.all(self.table_path)
     results = {
         'example': 'Failed Banks List',
         'example_faceted': 'Appropriations by District', 
         'example_formatted': 'Stimulus Progress',
         'example_local': 'Browse All Approved Stimulus Highway Projects'
     }
     
     self.assertEqual(type(all), dict)
     
     for slug, title in results.items():
         self.assertEqual(title, all[slug].title)
Ejemplo n.º 2
0
def index():
    tables = Table.all('tables')
    return render_template('index.html', tables=tables)