def test_cap(self): req = list(check.get_global_reqs('name>=1.2,!=1.4,<2.0')['name'])[0] self.assertEqual( set(['!=1.4', '<2.0']), check._get_exclusions(req), )
def test_none(self): req = list(check.get_global_reqs('name>=1.2')['name'])[0] self.assertEqual( set(), check._get_exclusions(req), )
def test_one(self): req = list(check.get_global_reqs('name>=1.2,!=1.4')['name'])[0] self.assertEqual( set(['!=1.4']), check._get_exclusions(req), )