

def test_schema_eq(self):
    a = fields.Schema()
    b = fields.Schema()
    self.assertEqual(a, b)
    a = fields.Schema(id=fields.ID)
    b = fields.Schema(id=fields.ID)
    self.assertEqual(a[0], b[0])
    self.assertEqual(a, b)
    c = fields.Schema(id=fields.TEXT)
    self.assertNotEqual(a, c)

dataset/ETHPy150Open dokipen/whoosh/tests/test_fields.py TestSchema.test_schema_eq/original