Exemple #1
0
 def test_get_current_version_label(self):
     url = self.local_url
     version = self.local_version
     client = HgClient(self.local_path)
     client.checkout(url, version='test_tag')
     self.assertEqual(client.get_current_version_label(), 'default')
     client.update(version='default')
     self.assertEqual(client.get_current_version_label(), 'default')
     client.update(version='test_branch')
     self.assertEqual(client.get_current_version_label(), 'test_branch')
Exemple #2
0
 def test_get_current_version_label(self):
     url = self.local_url
     version = self.local_version
     client = HgClient(self.local_path)
     client.checkout(url, version='test_tag')
     self.assertEqual(client.get_current_version_label(), 'default')
     client.update(version='default')
     self.assertEqual(client.get_current_version_label(), 'default')
     client.update(version='test_branch')
     self.assertEqual(client.get_current_version_label(), 'test_branch')