Example #1
0
 def test_get_Packages(self):
     from rosdeb import get_Packages
     # this will work for a couple of years, at least
     s1 = get_Packages(SHADOW_REPO, 'lucid', 'amd64')
     s2 = get_Packages(SHADOW_REPO, 'lucid', 'amd64')
     # this is cached, so it should always works
     self.assertEquals(s1, s2)
     # we will test parsing of this separately, just do a sanity check
     self.assert_('Package: ' in s1)
 def test_get_Packages(self):
     from rosdeb import get_Packages
     # this will work for a couple of years, at least
     s1 = get_Packages(SHADOW_REPO, 'lucid', 'amd64')
     s2 = get_Packages(SHADOW_REPO, 'lucid', 'amd64')
     # this is cached, so it should always works
     self.assertEquals(s1, s2)
     # we will test parsing of this separately, just do a sanity check
     self.assert_('Package: ' in s1)
Example #3
0
 def test_parse_Packages(self):
     from rosdeb import parse_Packages, get_Packages
     s1 = get_Packages(SHADOW_REPO, 'lucid', 'amd64')
     parsed = parse_Packages(s1)
     # make sure there are some ros packages in the repo
     matches = [x for x in parsed if x[0].startswith('ros-')]
     self.assert_(len(matches))
 def test_parse_Packages(self):
     from rosdeb import parse_Packages, get_Packages
     s1 = get_Packages(SHADOW_REPO, 'lucid', 'amd64')
     parsed = parse_Packages(s1)
     # make sure there are some ros packages in the repo
     matches = [x for x in parsed if x[0].startswith('ros-')]
     self.assert_(len(matches))