Source

fat_po_editor / tests / test_vcs_util.py

Full commit
# -*- coding: utf-8 -*-

import os
import unittest

from fat_po_editor.vcs_util import RepoWithPofiles, BoundChangesetInfo
from . import get_testdata_path

class TestVcsUtilRepoWithPofiles(unittest.TestCase):
    def setUp(self):
        self.testdata_path = os.path.join(get_testdata_path(),
                                          'repo1')
        self.repo = RepoWithPofiles(self.testdata_path)

    def test_get_last_changesets_info_simple(self):
        info = self.repo.get_last_changesets_info()
        self.assertEquals(len(info), 2)
        self.assertEquals(unicode(info[0]),
                          (u"Revision no.: "))