Пример #1
0
    def test_basic(self):
        query = Query()
        query.fromm.append(DocumentIndex)
        result = list(query)

        self.assertEqual('Type1', result[0][2])
        self.assertEqual('MainType1', result[0][3])
        self.assertEqual('MainType1', result[0][4])
        self.assertEqual('MainType1 Type1', result[0][5])
        self.assertEqual(self.date, Date.to_python(result[0][6]))
Пример #2
0
    def test_basic(self):
        query = Query()
        query.fromm.append(DocumentIndex)
        result = list(query)

        self.assertEqual('Type1', result[0][2])
        self.assertEqual('MainType1', result[0][3])
        self.assertEqual('MainType1', result[0][4])
        self.assertEqual('MainType1 Type1', result[0][5])
        self.assertEqual(self.date, Date.to_python(result[0][6]))
Пример #3
0
    def test_date(self):
        result = list(self.query)[0][3]

        result = Date.to_python(result)
        self.assertEqual(result, self.document.date)
    def test_date(self):
        result = list(self.query)[0][3]

        result = Date.to_python(result)
        self.assertEqual(result, self.document.date)