-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsimpleTest.py
36 lines (27 loc) · 1.05 KB
/
simpleTest.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
31
32
33
34
35
36
import unittest
import os
from utils import *
class TestHypercubes(unittest.TestCase):
def setUp(self):
pass
def test_dimension_1(self):
self.assertEqual(
read_file_with_hypercubes('test_expected/hypercubes_1.txt'),
read_file_with_hypercubes('test_complete_03/hypercubes_1.txt'))
def test_dimension_2(self):
self.assertEqual(
read_file_with_hypercubes('test_expected/hypercubes_2.txt'),
read_file_with_hypercubes('test_complete_03/hypercubes_2.txt'))
def test_dimension_3(self):
self.assertEqual(
read_file_with_hypercubes('test_expected/hypercubes_3.txt'),
read_file_with_hypercubes('test_complete_03/hypercubes_3.txt'))
if __name__ == '__main__':
if not os.path.exists('test_complete_03'):
print('Please, run:')
print()
print('python3 HypercubeME.py -g test_complete_03.txt -d test_complete_03')
print()
print('and run me again')
exit(1)
unittest.main()