@skip_if(IS_SQLITE_OLD)
def test_introspect_view_integration(self):
    for (i, (ct, st)) in enumerate([('n1', 1), ('n2', 2), ('n3', 1)]):
        Note.create(content=ct, status=st, timestamp=datetime.datetime(2018, 1, (1 + i)))
    NP = self.introspector.generate_models(table_names=['notes_public'], include_views=True)['notes_public']
    self.assertEqual([(np.content, np.timestamp) for np in NP.select()], [('n3', datetime.datetime(2018, 1, 3)), ('n1', datetime.datetime(2018, 1, 1))])
@skip_if(IS_SQLITE_OLD)
def test_introspect_view_integration(self):
    for (i, (ct, st)) in enumerate([('n1', 1), ('n2', 2), ('n3', 1)]):
        Note.create(content=ct, status=st, timestamp=datetime.datetime(2018, 1, (1 + i)))
    NP = self.introspector.generate_models(table_names=['notes_public'], include_views=True)['notes_public']
    self.assertEqual([(np.content, np.timestamp) for np in NP.select()], [('n3', datetime.datetime(2018, 1, 3)), ('n1', datetime.datetime(2018, 1, 1))])