comparison tests/test_fetch_command.py @ 245:f8e9b74df403

Fix test_no_dates to not be TZ-sensitive.
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 08 Apr 2009 18:29:03 +0200
parents c90cfa665b81
children ffccf0080e54
comparison
equal deleted inserted replaced
244:28d0ee605308 245:f8e9b74df403
4 from mercurial import node 4 from mercurial import node
5 from mercurial import ui 5 from mercurial import ui
6 6
7 import test_util 7 import test_util
8 8
9
10 class TestBasicRepoLayout(test_util.TestBase): 9 class TestBasicRepoLayout(test_util.TestBase):
11 10
12 def test_no_dates(self): 11 def test_no_dates(self):
13 repo = self._load_fixture_and_fetch('test_no_dates.svndump') 12 repo = self._load_fixture_and_fetch('test_no_dates.svndump')
14 self.assertEqual(repo[0].date(), (-3600.0, -3600)) 13 local_epoch = repo[0].date()
14 self.assertEqual(local_epoch[0], local_epoch[1])
15 self.assertEqual(repo[1].date(), repo[2].date()) 15 self.assertEqual(repo[1].date(), repo[2].date())
16 16
17 def test_fresh_fetch_single_rev(self): 17 def test_fresh_fetch_single_rev(self):
18 repo = self._load_fixture_and_fetch('single_rev.svndump') 18 repo = self._load_fixture_and_fetch('single_rev.svndump')
19 self.assertEqual(node.hex(repo['tip'].node()), 19 self.assertEqual(node.hex(repo['tip'].node()),