summaryrefslogtreecommitdiff
path: root/xnt/tests/vcsgittests.py
diff options
context:
space:
mode:
Diffstat (limited to 'xnt/tests/vcsgittests.py')
-rw-r--r--xnt/tests/vcsgittests.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/xnt/tests/vcsgittests.py b/xnt/tests/vcsgittests.py
index e1b8718..afc1ba7 100644
--- a/xnt/tests/vcsgittests.py
+++ b/xnt/tests/vcsgittests.py
@@ -9,7 +9,7 @@
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
-# This program is distributed in the hope that it will be useful,
+# This program is distributed, the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
@@ -31,9 +31,9 @@ class VcsGitTests(unittest.TestCase):
url = 'git://github.com/devnulltao/Xnt.git'
result = __gitclone__(url)
assert_basic_assumptions(self, result)
- self.assertTrue('url' in result[0][1])
- self.assertTrue('dest' in result[0][1])
- self.assertTrue('branch' in result[0][1])
+ self.assertIn('url', result[0][1])
+ self.assertIn('dest', result[0][1])
+ self.assertIn('branch', result[0][1])
self.assertEqual(url, result[0][1]['url'])
self.assertIsNone(result[0][1]['dest'])
self.assertIsNone(result[0][1]['branch'])
@@ -42,11 +42,11 @@ class VcsGitTests(unittest.TestCase):
'''Test GIT Pull'''
result = __gitpull__('./', remote='upstream', branch='develop')
assert_basic_assumptions(self, result)
- self.assertTrue('path' in result[0][1])
+ self.assertIn('path', result[0][1])
self.assertEqual('./', result[0][1]['path'])
- self.assertTrue('remote' in result[0][1])
+ self.assertIn('remote', result[0][1])
self.assertEqual('upstream', result[0][1]['remote'])
- self.assertTrue('branch' in result[0][1])
+ self.assertIn('branch', result[0][1])
self.assertEqual('develop', result[0][1]['branch'])
if __name__ == "__main__":