コード例 #1
0
ファイル: test_version.py プロジェクト: datagold2017/inasafe
 def test_get_current_hash(self):
     """Test for get_current_hash."""
     git_hash = current_git_hash()
     if 'win32' in sys.platform:
         # On windows we get 9 chars of the git hash back
         self.assertEqual(len(git_hash), 9)
     else:
         self.assertEqual(len(git_hash), 7)
コード例 #2
0
ファイル: test_version.py プロジェクト: macweather/inasafe
 def test_get_current_hash(self):
     """Test for get_current_hash."""
     git_hash = current_git_hash()
     if sys.platform in ['win32', 'darwin']:
         # On windows we get 9 chars of the git hash back
         # On MacOS also (IS - 27 Apr 2017)
         self.assertEqual(len(git_hash), 9)
     else:
         self.assertEqual(len(git_hash), 7)
コード例 #3
0
ファイル: test_version.py プロジェクト: akbargumbira/inasafe
 def test_get_current_hash(self):
     """Test for get_current_hash."""
     git_hash = current_git_hash()
     if sys.platform in ['win32', 'darwin']:
         # On windows we get 9 chars of the git hash back
         # On MacOS also (IS - 27 Apr 2017)
         self.assertEqual(len(git_hash), 9)
     else:
         self.assertEqual(len(git_hash), 7)
コード例 #4
0
 def test_get_current_hash(self):
     """Test for get_current_hash."""
     git_hash = current_git_hash()
     self.assertEqual(len(git_hash), 7)
コード例 #5
0
 def test_get_current_hash(self):
     """Test for get_current_hash."""
     git_hash = current_git_hash()
     self.assertEqual(len(git_hash), 6)