Ejemplo n.º 1
0
 def testGetUpstreamBranchShortUpstream(self):
   """Test _GetUpstreamBranch with short upstream ref."""
   branch = create_manifest_snapshot._GetUpstreamBranch(self.project_b)
   self.assertEqual(branch, 'short')
Ejemplo n.º 2
0
 def testGetUpstreamBranchFullUpstream(self):
   """Test _GetUpstreamBranch with full upstream ref."""
   branch = create_manifest_snapshot._GetUpstreamBranch(self.project_c)
   self.assertEqual(branch, 'master')
Ejemplo n.º 3
0
 def testGetUpstreamBranchNoUpstream(self):
   """Test _GetUpstreamBranch with no upstream."""
   branch = create_manifest_snapshot._GetUpstreamBranch(self.project_a)
   self.assertIsNone(branch)