aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/caf/tests')
-rw-r--r--ctrack/caf/tests/test_models.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ctrack/caf/tests/test_models.py b/ctrack/caf/tests/test_models.py
new file mode 100644
index 0000000..ba54051
--- /dev/null
+++ b/ctrack/caf/tests/test_models.py
@@ -0,0 +1,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]