-
Notifications
You must be signed in to change notification settings - Fork 4
/
test_obihaiScan.py
30 lines (22 loc) · 931 Bytes
/
test_obihaiScan.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from unittest import TestCase
from obihai_helper import ObihaiHelper
from obihai_scan import ObihaiScan
class TestObihaiScan(TestCase):
def test_scan_full_system_status(self):
config_folder = "./"
self.helper = ObihaiHelper(config_folder)
self.obiscan = ObihaiScan(self.helper)
print(self.obiscan.scan_full_system_status())
def test_scan_call_status(self):
config_folder = "./"
self.helper = ObihaiHelper(config_folder)
self.obiscan = ObihaiScan(self.helper)
print(self.obiscan.scan_call_status())
def test_format_phone_number(self):
config_folder = "./"
self.helper = ObihaiHelper(config_folder)
self.obiscan = ObihaiScan(self.helper)
phone_str = "1234567890"
print(self.obiscan.format_phone_number(phone_str))
phone_str = "0111234567890"
print(self.obiscan.format_phone_number(phone_str))