diff options
Diffstat (limited to 'src/argaze.test/GazeFeatures.py')
-rw-r--r-- | src/argaze.test/GazeFeatures.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/argaze.test/GazeFeatures.py b/src/argaze.test/GazeFeatures.py new file mode 100644 index 0000000..692b6cf --- /dev/null +++ b/src/argaze.test/GazeFeatures.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +import unittest + +from argaze import GazeFeatures + +class TestGazePositionClass(unittest.TestCase): + """Test GazePosition class.""" + + def test_new(self): + """Test GazePosition creation.""" + + # Check empty GazePosition + empty_gaze_position = GazeFeatures.GazePosition() + self.assertEqual(empty_gaze_position.value, (0, 0)) + self.assertEqual(empty_gaze_position.accuracy, 0.) + +if __name__ == '__main__': + + unittest.main()
\ No newline at end of file |