aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/tests/test_models.py
blob: ba5405135d92113cb086f32bb607adb8bce97723 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import pytest

pytestmark = pytest.mark.django_db


def test_can_get_cafs_from_applicable_system(caf):
    version = caf.version
    test_system = caf.systems.all().first()
    cafs = test_system.get_cafs()
    assert version in [c.version for c in cafs]