File: remove_root_check_test.diff

package info (click to toggle)
python-crontab 1.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 356 kB
  • ctags: 494
  • sloc: python: 1,520; makefile: 8; sh: 8
file content (19 lines) | stat: -rw-r--r-- 723 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# From: Jordan Metzmeier <jmetzmeier01@gmail.com>
# Subject: Fix tests so they can be ran as root
# One of the unit tests is a check to see if the current user
# is root and asserts that this is false. This not the case
# when the build is being done by pbuilder. I opted to just remove
# the test as I didn't see it as useful
--- a/tests/test_interaction.py
+++ b/tests/test_interaction.py
@@ -64,10 +64,6 @@
     def setUp(self):
         self.crontab = CronTab(tabfile='data/test.tab')
 
-    def test_00_root(self):
-        """Not Root User"""
-        self.assertFalse(self.crontab.root)
-
     def test_01_presevation(self):
         """All Entries Re-Rendered Correctly"""
         results = RESULT_TAB.split('\n')