test_feature.py 546 B

1234567891011121314151617
  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_true_for_borg_stable_version_introducing_feature():
  7. assert module.available(module.Feature.COMPACT, '1.2.0')
  8. def test_available_false_for_too_old_borg_version():
  9. assert not module.available(module.Feature.COMPACT, '1.1.5')