def test_introspect_view(self):
    models = self.introspector.generate_models(include_views=True)
    self.assertTrue(('notes_public' in models))
    NotesPublic = models['notes_public']
    self.assertEqual(sorted(NotesPublic._meta.fields), ['content', 'timestamp'])
    self.assertTrue(isinstance(NotesPublic.content, TextField))
    self.assertTrue(isinstance(NotesPublic.timestamp, DateTimeField))
def test_introspect_view(self):
    models = self.introspector.generate_models(include_views=True)
    self.assertTrue(('notes_public' in models))
    NotesPublic = models['notes_public']
    self.assertEqual(sorted(NotesPublic._meta.fields), ['content', 'timestamp'])
    self.assertTrue(isinstance(NotesPublic.content, TextField))
    self.assertTrue(isinstance(NotesPublic.timestamp, DateTimeField))