forked from sportorg/pysport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iss_test.py
25 lines (19 loc) · 831 Bytes
/
iss_test.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
import unittest
from sportorg import config
class TestISS(unittest.TestCase):
def setUp(self):
print('=========>', self.__class__.__name__, self._testMethodName)
with open('sportorg.iss') as f:
self.data = f.readlines()
def test_app_version(self):
for item in self.data:
if '#define MyAppVersion ' in item:
self.assertTrue(str(config.VERSION) in item, '{} not in "{}"'.format(config.VERSION, item))
return
self.fail('Not app version')
def test_version_info(self):
for item in self.data:
if '#define MyVersionInfoVersion ' in item:
self.assertTrue(config.VERSION.file in item, '{} not in "{}"'.format(config.VERSION.file, item))
return
self.fail('Not version info')