comparison tests/test_push_command.py @ 349:5d0d9424913f

test_push_command: this test causes an author of None. This may be unintended, but we should test for it nonetheless.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 22 May 2009 13:42:51 +0200
parents af1508b7ad54
children 62f90781eb10
comparison
equal deleted inserted replaced
348:af1508b7ad54 349:5d0d9424913f
99 self.assertNotEqual(oldauthor, tip.user()) 99 self.assertNotEqual(oldauthor, tip.user())
100 self.assertNotEqual(tip.node(), old_tip) 100 self.assertNotEqual(tip.node(), old_tip)
101 self.assertEqual(tip.parents()[0].node(), expected_parent) 101 self.assertEqual(tip.parents()[0].node(), expected_parent)
102 self.assertEqual(tip['adding_file'].data(), 'foo') 102 self.assertEqual(tip['adding_file'].data(), 'foo')
103 self.assertEqual(tip.branch(), 'default') 103 self.assertEqual(tip.branch(), 'default')
104 # unintended behaviour:
105 self.assertNotEqual('an_author', tip.user())
106 self.assertEqual('None', tip.user().rsplit('@', 1)[0])
104 finally: 107 finally:
105 os.kill(self.svnserve_pid, 9) 108 os.kill(self.svnserve_pid, 9)
106 109
107 def test_push_to_default(self, commit=True): 110 def test_push_to_default(self, commit=True):
108 repo = self.repo 111 repo = self.repo