File: test_sprites.py

package info (click to toggle)
python-asciimatics 1.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,488 kB
  • sloc: python: 15,713; sh: 8; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import unittest
from asciimatics.paths import Path
from asciimatics.sprites import Sam, Arrow, Plot


class TestSprites(unittest.TestCase):
    def test_init(self):
        # Most of the function in these classes is actually in the Sprite
        # base Effect - so just check we can build these classes
        self.assertIsNotNone(Sam(None, Path()))
        self.assertIsNotNone(Arrow(None, Path()))
        self.assertIsNotNone(Plot(None, Path()))


if __name__ == '__main__':
    unittest.main()