Changeset 1681:b6979d84d3f8 for tests

Show
Ignore:
Timestamp:
11/21/08 23:59:52 (7 weeks ago)
Author:
Ali Afshar <aafshar@…>
Message:

fixed document tests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tests/core/test_document.py

    r1310 r1681  
    107107    def test_repr_known(self): 
    108108        doc = document(filename='test') 
    109         self.assertEqual(repr(doc), "<Document 'test' (%s)>" %id(doc)) 
     109        self.assertEqual(repr(doc), "<Document '%s' (%s)>" % 
     110                                    (os.path.abspath('test'), id(doc))) 
    110111         
    111112    def test_unicode_new(self): 
     
    116117    def test_unicode_knows(self): 
    117118        doc = document(filename='test') 
    118         self.assertEqual(unicode(doc), doc.filename) 
     119        self.assertEqual(unicode(doc), doc.basename) 
    119120         
    120121    def test_content_nonlife(self):