def test_repr(self):
    index = models.Index(fields=['title'])
    multi_col_index = models.Index(fields=['title', 'author'])
    self.assertEqual(repr(index), "<Index: fields='title'>")
    self.assertEqual(repr(multi_col_index), "<Index: fields='title, author'>")
def test_repr(self):
    index = models.Index(fields=['title'])
    multi_col_index = models.Index(fields=['title', 'author'])
    self.assertEqual(repr(index), "<Index: fields='title'>")
    self.assertEqual(repr(multi_col_index), "<Index: fields='title, author'>")