Skip to content

Commit 9f17c05

Browse files
committed
Add basic unit tests for Win7 specific platform
1 parent ec7f03c commit 9f17c05

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

test/os_win7.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env python
2+
"""
3+
mbed SDK
4+
Copyright (c) 2011-2015 ARM Limited
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
"""
18+
19+
import unittest
20+
from mbed_lstools.lstools_win7 import MbedLsToolsWin7
21+
22+
23+
class Win7TestCase(unittest.TestCase):
24+
""" Basic test cases checking trivial asserts
25+
"""
26+
27+
def setUp(self):
28+
self.win7 = MbedLsToolsWin7()
29+
30+
def test_os_supported(self):
31+
self.assertIn("Windows7", self.win7.os_supported)
32+
33+
if __name__ == '__main__':
34+
unittest.main()

0 commit comments

Comments
 (0)