diff options
author | Filipp Lepalaan <filipp@mac.com> | 2016-11-11 01:23:31 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2016-11-11 01:23:31 +0200 |
commit | c7432daca9a2cfd5ab506552446700932a99bc33 (patch) | |
tree | e028a0d398b9bcf24d16afb7f47e8f84efdd5615 /servo/tests | |
parent | 21ea1c543918660eaf2d85b3760746557ece039c (diff) | |
download | Servo-c7432daca9a2cfd5ab506552446700932a99bc33.tar.gz Servo-c7432daca9a2cfd5ab506552446700932a99bc33.tar.bz2 Servo-c7432daca9a2cfd5ab506552446700932a99bc33.zip |
Try to use country code for purchase_country
Diffstat (limited to 'servo/tests')
-rw-r--r-- | servo/tests/test_models.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/servo/tests/test_models.py b/servo/tests/test_models.py index b0ef6e7..ba3b714 100644 --- a/servo/tests/test_models.py +++ b/servo/tests/test_models.py @@ -7,6 +7,19 @@ from servo.models.common import Configuration from servo.models.order import Order from servo.models.account import User from servo.models.queue import Queue +from servo.models.device import Device + + +class DeviceTests(TestCase): + def test_purchase_country_code(self): + device = Device() + device.purchase_country = 'SE' + self.assertEquals(device.get_purchase_country(), 'Sweden') + + def test_purchase_country(self): + device = Device() + device.purchase_country = 'Sweden' + self.assertEquals(device.get_purchase_country(), 'Sweden') class ConfigurationTests(TestCase): |