diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-01 10:38:26 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-01 10:38:26 +0100 |
commit | 9b9643aa058f92b696e4c6a87a2247699b7099b3 (patch) | |
tree | e26fa662a93c56669ec2f1174f1e9c7faf68b87f /ctrack/caf/tests | |
parent | aafd30c1eea5a4b97b9afd99d8c55832031ce60f (diff) |
test for model function to get cafs from an applicable system
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/tests/test_models.py | 10 |
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] |