summaryrefslogtreecommitdiff
blob: 5bb7a8e4c46b09c351c2c818c2516f93ff2f5388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/tests/unit/utils/extend_test.py b/tests/unit/utils/extend_test.py
index f63a4896f7..54bf443d9a 100644
--- a/tests/unit/utils/extend_test.py
+++ b/tests/unit/utils/extend_test.py
@@ -38,18 +38,6 @@ class ExtendTestCase(TestCase):
                 shutil.rmtree(self.out, True)
         os.chdir(self.starting_dir)
 
-    @patch('sys.exit', MagicMock)
-    def test_run(self):
-        out = salt.utils.extend.run('test', 'test', 'this description', integration.CODE_DIR, False)
-        self.out = out
-        year = date.today().strftime('%Y')
-        self.assertTrue(os.path.exists(out))
-        self.assertFalse(os.path.exists(os.path.join(out, 'template.yml')))
-        self.assertTrue(os.path.exists(os.path.join(out, 'directory')))
-        self.assertTrue(os.path.exists(os.path.join(out, 'directory', 'test.py')))
-        with salt.utils.fopen(os.path.join(out, 'directory', 'test.py'), 'r') as test_f:
-            self.assertEqual(test_f.read(), year)
-
 if __name__ == '__main__':
     from unit import run_tests
     run_tests(ExtendTestCase, needs_daemon=False)