def test_two_indexes(self):
        fromm = FromStatement()

        fromm.append(MockIndex('test'))
        fromm.append(MockIndex('test1'))

        self.assertEqual(fromm.sql(), 'test, test1')
    def test_raise_at_same_names(self):
        fromm = FromStatement()

        fromm.append(MockIndex('test'))
        with self.assertRaises(AssertionError):
            fromm.append(MockIndex('test'))
    def test_basic(self):
        fromm = FromStatement()

        fromm.append(MockIndex('test'))

        self.assertEqual(fromm.sql(), 'test')