Ejemplo n.º 1
0
 def test_pkgname_expands(self):
     foo = ["apt*"]
     m_mock = mock.Mock()
     self.assertEqual(
         expand_pkgspec_from_fnmatches(m_mock, foo, self.fake_cache),
         ["apt", "apt-utils"])
Ejemplo n.º 2
0
 def test_version_wildcard(self):
     foo = ["apt=1.0*"]
     self.assertEqual(
         expand_pkgspec_from_fnmatches(None, foo, self.fake_cache), foo)
Ejemplo n.º 3
0
 def test_pkgname_wildcard_version_wildcard(self):
     foo = ["apt*=1.0*"]
     m_mock = mock.Mock()
     self.assertEqual(
         expand_pkgspec_from_fnmatches(m_mock, foo, self.fake_cache),
         ['apt', 'apt-utils'])
Ejemplo n.º 4
0
 def test_trivial(self):
     foo = ["apt"]
     self.assertEqual(
         expand_pkgspec_from_fnmatches(None, foo, self.fake_cache), foo)
Ejemplo n.º 5
0
 def test_pkgname_expands(self):
     foo = ["apt*"]
     m_mock = mock.Mock()
     self.assertEqual(
         expand_pkgspec_from_fnmatches(m_mock, foo, self.fake_cache),
         ["apt", "apt-utils"])
Ejemplo n.º 6
0
 def test_pkgname_wildcard_version_wildcard(self):
     foo = ["apt*=1.0*"]
     m_mock = mock.Mock()
     self.assertEqual(
         expand_pkgspec_from_fnmatches(m_mock, foo, self.fake_cache),
         ['apt', 'apt-utils'])
Ejemplo n.º 7
0
 def test_version_wildcard(self):
     foo = ["apt=1.0*"]
     self.assertEqual(
         expand_pkgspec_from_fnmatches(None, foo, self.fake_cache), foo)
Ejemplo n.º 8
0
 def test_trivial(self):
     foo = ["apt"]
     self.assertEqual(
         expand_pkgspec_from_fnmatches(None, foo, self.fake_cache), foo)