@@ -29,9 +29,7 @@ class ParseMbedHTMTestCase(unittest.TestCase):
29
29
30
30
# DAPlink <0240
31
31
test_mbed_htm_k64f_url_str = '<meta http-equiv="refresh" content="0; url=http://mbed.org/device/?code=02400203D94B0E7724B7F3CF"/>'
32
- test_mbed_htm_l152re_url_str = '<meta http-equiv="refresh" content="0; url=http://mbed.org/device/?code=07100200656A9A955A0F0CB8"/>'
33
32
test_mbed_htm_lpc1768_url_str = '<meta http-equiv="refresh" content="0; url=http://mbed.org/start?auth=101000000000000000000002F7F1869557200730298d254d3ff3509e3fe4722d&loader=11972&firmware=16457&configuration=4" />'
34
- test_mbed_htm_nucleo_l031k6_str = '<meta http-equiv="refresh" content="0; url=http://mbed.org/device/?code=07900221461663077952F5AA"/>'
35
33
test_mbed_htm_nrf51_url_str = '<meta http-equiv="refresh" content="0; url=http://mbed.org/device/?code=1100021952333120353935373130313232323032AFD5DFD8"/>'
36
34
37
35
# DAPLink 0240
@@ -47,18 +45,10 @@ def test_mbed_htm_k64f_url(self):
47
45
target_id = self .mbeds ._target_id_from_htm (self .test_mbed_htm_k64f_url_str )
48
46
self .assertEqual ('02400203D94B0E7724B7F3CF' , target_id )
49
47
50
- def test_mbed_htm_l152re_url (self ):
51
- target_id = self .mbeds ._target_id_from_htm (self .test_mbed_htm_l152re_url_str )
52
- self .assertEqual ('07100200656A9A955A0F0CB8' , target_id )
53
-
54
48
def test_mbed_htm_lpc1768_url (self ):
55
49
target_id = self .mbeds ._target_id_from_htm (self .test_mbed_htm_lpc1768_url_str )
56
50
self .assertEqual ('101000000000000000000002F7F1869557200730298d254d3ff3509e3fe4722d' , target_id )
57
51
58
- def test_daplink_nucleo_l031k6_url (self ):
59
- target_id = self .mbeds ._target_id_from_htm (self .test_mbed_htm_nucleo_l031k6_str )
60
- self .assertEqual ('07900221461663077952F5AA' , target_id )
61
-
62
52
def test_daplink_240_mbed_html (self ):
63
53
target_id = self .mbeds ._target_id_from_htm (self .test_daplink_240_mbed_html_str )
64
54
self .assertEqual ('0240000029164e45002f0012706e0006f301000097969900' , target_id )
@@ -83,10 +73,6 @@ def get_mbed_htm_comment_section_ver_build(self):
83
73
self .assertIsNotNone (ver_bld )
84
74
self .assertEqual (('0200' , 'Mar 26 2014 13:22:20' ), ver_bld )
85
75
86
- ver_bld = self .mbeds ._mbed_htm_comment_section_ver_build ('<!-- Version: 0200 Build: Aug 27 2014 13:29:28 -->' )
87
- self .assertIsNotNone (ver_bld )
88
- self .assertEqual (('0200' , 'Aug 27 2014 13:29:28' ), ver_bld )
89
-
90
76
ver_bld = self .mbeds ._mbed_htm_comment_section_ver_build ('<!-- Version: 0219 Build: Feb 2 2016 15:20:54 Git Commit SHA: 0853ba0cdeae2436c52efcba0ba76a6434c200ff Git local mods:No-->' )
91
77
self .assertIsNotNone (ver_bld )
92
78
self .assertEqual (('0219' , 'Feb 2 2016 15:20:54' ), ver_bld )
0 commit comments