2
# -*- coding: iso-8859-1 -*-
4
# TestProcINotify.py - inotify's path tests cases
5
# Copyright (C) 2006 S�bastien Martini <sebastien.martini@gmail.com>
7
# This program is free software; you can redistribute it and/or
8
# modify it under the terms of the GNU General Public License
9
# as published by the Free Software Foundation.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with this program; if not, write to the Free Software
18
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25
from src.pyinotify.inotify import max_queued_events, \
26
max_user_instances, max_user_watches
28
from inotify import max_queued_events, max_user_instances, \
32
class TestProcINotify(unittest.TestCase):
38
max_queued_events.value = 16384
39
max_user_instances.value = 128
40
max_user_watches.value = 8192
47
self.assertEqual(max_queued_events.value, 16384)
48
self.assertEqual(max_user_instances.value, 128)
49
self.assertEqual(max_user_watches.value, 8192)
54
suite = unittest.TestSuite()
55
suite.addTests([TestProcINotify('test_write'),
56
TestProcINotify('test_read')])
61
runner = unittest.TextTestRunner(verbosity=2)
62
runner.run(testsuite())
65
if __name__ == '__main__':