mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove *args, **kwargs
. Not needed, not useful.
This commit is contained in:
parent
17c9490a45
commit
d56d6059f0
1 changed files with 8 additions and 8 deletions
|
@ -32,12 +32,12 @@ class INotifyBeaconTestCase(TestCase):
|
|||
def tearDown(self):
|
||||
shutil.rmtree(self.tmpdir, ignore_errors=True)
|
||||
|
||||
def test_empty_config(self, *args, **kwargs):
|
||||
def test_empty_config(self):
|
||||
config = {}
|
||||
ret = inotify.beacon(config)
|
||||
self.assertEqual(ret, [])
|
||||
|
||||
def test_file_open(self, *args, **kwargs):
|
||||
def test_file_open(self):
|
||||
path = os.path.realpath(__file__)
|
||||
config = {path: {'mask': ['open']}}
|
||||
ret = inotify.beacon(config)
|
||||
|
@ -50,7 +50,7 @@ class INotifyBeaconTestCase(TestCase):
|
|||
self.assertEqual(ret[0]['path'], path)
|
||||
self.assertEqual(ret[0]['change'], 'IN_OPEN')
|
||||
|
||||
def test_dir_no_auto_add(self, *args, **kwargs):
|
||||
def test_dir_no_auto_add(self):
|
||||
config = {self.tmpdir: {'mask': ['create']}}
|
||||
ret = inotify.beacon(config)
|
||||
self.assertEqual(ret, [])
|
||||
|
@ -66,7 +66,7 @@ class INotifyBeaconTestCase(TestCase):
|
|||
ret = inotify.beacon(config)
|
||||
self.assertEqual(ret, [])
|
||||
|
||||
def test_dir_auto_add(self, *args, **kwargs):
|
||||
def test_dir_auto_add(self):
|
||||
config = {self.tmpdir: {'mask': ['create', 'open'], 'auto_add': True}}
|
||||
ret = inotify.beacon(config)
|
||||
self.assertEqual(ret, [])
|
||||
|
@ -86,7 +86,7 @@ class INotifyBeaconTestCase(TestCase):
|
|||
self.assertEqual(ret[0]['path'], fp)
|
||||
self.assertEqual(ret[0]['change'], 'IN_OPEN')
|
||||
|
||||
def test_dir_recurse(self, *args, **kwargs):
|
||||
def test_dir_recurse(self):
|
||||
dp1 = os.path.join(self.tmpdir, 'subdir1')
|
||||
os.mkdir(dp1)
|
||||
dp2 = os.path.join(dp1, 'subdir2')
|
||||
|
@ -108,12 +108,12 @@ class INotifyBeaconTestCase(TestCase):
|
|||
self.assertEqual(ret[2]['path'], fp)
|
||||
self.assertEqual(ret[2]['change'], 'IN_OPEN')
|
||||
|
||||
def test_dir_recurse_auto_add(self, *args, **kwargs):
|
||||
def test_dir_recurse_auto_add(self):
|
||||
dp1 = os.path.join(self.tmpdir, 'subdir1')
|
||||
os.mkdir(dp1)
|
||||
config = {self.tmpdir: {'mask': ['create', 'delete'],
|
||||
'recurse': True,
|
||||
'auto_add': True}}
|
||||
'recurse': True,
|
||||
'auto_add': True}}
|
||||
ret = inotify.beacon(config)
|
||||
self.assertEqual(ret, [])
|
||||
dp2 = os.path.join(dp1, 'subdir2')
|
||||
|
|
Loading…
Add table
Reference in a new issue