|
|
@ -1,7 +1,7 @@ |
|
|
|
import pytest |
|
|
|
import pytest |
|
|
|
|
|
|
|
|
|
|
|
from openpilot.system.hardware import TICI |
|
|
|
from openpilot.system.hardware import TICI |
|
|
|
from openpilot.system.hardware.tici.esim import LPA2, LPAProfileNotFoundError |
|
|
|
from openpilot.system.hardware.tici.esim import LPA, LPAProfileNotFoundError |
|
|
|
|
|
|
|
|
|
|
|
# https://euicc-manual.osmocom.org/docs/rsp/known-test-profile |
|
|
|
# https://euicc-manual.osmocom.org/docs/rsp/known-test-profile |
|
|
|
# iccid is always the same for the given activation code |
|
|
|
# iccid is always the same for the given activation code |
|
|
@ -11,7 +11,7 @@ TEST_ICCID = '8944476500001944011' |
|
|
|
TEST_NICKNAME = 'test_profile' |
|
|
|
TEST_NICKNAME = 'test_profile' |
|
|
|
|
|
|
|
|
|
|
|
def cleanup(): |
|
|
|
def cleanup(): |
|
|
|
lpa = LPA2() |
|
|
|
lpa = LPA() |
|
|
|
try: |
|
|
|
try: |
|
|
|
lpa.delete_profile(TEST_ICCID) |
|
|
|
lpa.delete_profile(TEST_ICCID) |
|
|
|
except LPAProfileNotFoundError: |
|
|
|
except LPAProfileNotFoundError: |
|
|
@ -30,7 +30,7 @@ class TestEsim: |
|
|
|
cleanup() |
|
|
|
cleanup() |
|
|
|
|
|
|
|
|
|
|
|
def test_provision_enable_disable(self): |
|
|
|
def test_provision_enable_disable(self): |
|
|
|
lpa = LPA2() |
|
|
|
lpa = LPA() |
|
|
|
current_active = lpa.get_active_profile() |
|
|
|
current_active = lpa.get_active_profile() |
|
|
|
|
|
|
|
|
|
|
|
lpa.download_profile(TEST_ACTIVATION_CODE, TEST_NICKNAME) |
|
|
|
lpa.download_profile(TEST_ACTIVATION_CODE, TEST_NICKNAME) |
|
|
|