aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/users/tests/test_models.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-05-25 16:41:32 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-05-25 16:41:32 +0100
commitedb07988cbe91bd5faef1fa5b79f7406f1ea06d7 (patch)
treeb934e17a331634267453798e973cdac9d6eacf2b /ctrack/users/tests/test_models.py
parent37abea2c01a93abe50609268d742308064fef138 (diff)
more testing for stakeholder
Diffstat (limited to '')
-rw-r--r--ctrack/users/tests/test_models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctrack/users/tests/test_models.py b/ctrack/users/tests/test_models.py
index 504195f..402c41b 100644
--- a/ctrack/users/tests/test_models.py
+++ b/ctrack/users/tests/test_models.py
@@ -22,5 +22,8 @@ def test_stakeholder_model(person, user):
the system.
"""
stakeholder = Stakeholder(person=person)
+ org = person.organisation.name
user.stakeholder = stakeholder
assert user.stakeholder.person.first_name == "Chinaplate"
+ assert user.is_stakeholder() is True
+ assert user.get_organisation_name() == org