def test_dropped_requirement(self): warnings = [] old = { (None, 'pbr'): pkg_resources.Requirement.parse('pbr'), } new = {} requirements.compare_lower_bounds( old, new, warnings.append, ) print(warnings) self.assertEqual(0, len(warnings))
def test_new_lower_comparator(self): warnings = [] old = { (None, 'pbr'): pkg_resources.Requirement.parse('pbr>=1.6'), } new = { (None, 'pbr'): pkg_resources.Requirement.parse('pbr>1.6'), } requirements.compare_lower_bounds( old, new, warnings.append, ) print(warnings) self.assertEqual(1, len(warnings))