test_feature.py 412 B

12345678910111213
  1. from borgmatic.borg import feature as module
  2. def test_available_true_for_new_enough_borg_version():
  3. assert module.available(module.Feature.COMPACT, '1.3.7')
  4. def test_available_true_for_borg_version_introducing_feature():
  5. assert module.available(module.Feature.COMPACT, '1.2.0a2')
  6. def test_available_false_for_too_old_borg_version():
  7. assert not module.available(module.Feature.COMPACT, '1.1.5')