~widelands-dev/widelands/bug-1796364-blinking-buildings

« back to all changes in this revision

Viewing changes to utils/test/test_make_spritemap.py

  • Committer: GunChleoc
  • Date: 2018-12-13 16:43:41 UTC
  • mfrom: (8906.2.35 trunk)
  • Revision ID: fios@foramnagaidhlig.net-20181213164341-p7ez8i0yztoo62fm
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
 
 
3
import make_spritemap
3
4
import numpy as np
4
5
import os
5
6
import sys
7
8
 
8
9
sys.path.append(os.path.normpath(
9
10
    os.path.dirname(os.path.abspath(__file__)) + '/..'))
10
 
import make_spritemap
11
11
 
12
12
 
13
13
class TestMinimumAverageCostRectangle(unittest.TestCase):
161
161
        self.assertEqual(cost, 2 * FRAGMENT_COST + 2)
162
162
        self.assertItemsEqual(rectangles, [(0, 0, 1, 1), (3, 3, 4, 4)])
163
163
 
 
164
 
164
165
if __name__ == '__main__':
165
166
    unittest.main()