aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test/GazeFeatures.py
blob: 692b6cf4f7dba1b15f658fa8e2322e9259c19802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()