blob: 7f9262f764b882971263e26a41e69e529f755a59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
from os.path import join, dirname
from cStringIO import StringIO
from logilab.common.testlib import TestCase, unittest_main
from logilab.common.changelog import ChangeLog
class ChangeLogTC(TestCase):
cl_class = ChangeLog
cl_file = join(dirname(__file__), 'data', 'ChangeLog')
def test_round_trip(self):
cl = self.cl_class(self.cl_file)
out = StringIO()
cl.write(out)
self.assertStreamEquals(open(self.cl_file), out)
if __name__ == '__main__':
unittest_main()
|