Пример #1
0
 def test_is_dot_dir_double_dot(self):
     filename = '..'
     self.assertTrue(FileUtil.is_dot_dir(filename))
Пример #2
0
 def test_get_extension_hidden_txt_file(self):
     filename = '.hidden.txt'
     self.assertEqual(FileUtil.get_extension(filename), 'txt')
Пример #3
0
 def test_get_extension_hidden_file_no_extension(self):
     filename = '.hidden'
     self.assertEqual(FileUtil.get_extension(filename), '')
Пример #4
0
 def test_get_extension_missing_extension(self):
     filename = 'filename.'
     self.assertEqual(FileUtil.get_extension(filename), '')
Пример #5
0
 def test_get_extension_no_extension(self):
     filename = 'filename'
     self.assertEqual(FileUtil.get_extension(filename), '')
Пример #6
0
 def test_is_hidden_not_hidden_file(self):
     filename = 'filename.txt'
     self.assertFalse(FileUtil.is_hidden(filename))
Пример #7
0
 def test_get_extension_missing_extension(self):
     filename = 'filename.'
     self.assertEqual(FileUtil.get_extension(filename), '')
Пример #8
0
 def test_is_hidden_hidden_file(self):
     filename = '.filename.txt'
     self.assertTrue(FileUtil.is_hidden(filename))
Пример #9
0
 def test_is_hidden_not_hidden_file(self):
     filename = 'filename.txt'
     self.assertFalse(FileUtil.is_hidden(filename))
Пример #10
0
 def test_is_dot_dir_double_dot(self):
     filename = '..'
     self.assertTrue(FileUtil.is_dot_dir(filename))
Пример #11
0
 def test_is_dot_dir_non_dot_dir(self):
     filename = '.git'
     self.assertFalse(FileUtil.is_dot_dir(filename))
Пример #12
0
 def test_get_extension_hidden_file_no_extension(self):
     filename = '.hidden'
     self.assertEqual(FileUtil.get_extension(filename), '')
Пример #13
0
 def test_get_extension_hidden_txt_file(self):
     filename = '.hidden.txt'
     self.assertEqual(FileUtil.get_extension(filename), 'txt')
Пример #14
0
 def test_get_extension_no_extension(self):
     filename = 'filename'
     self.assertEqual(FileUtil.get_extension(filename), '')
Пример #15
0
 def test_is_dot_dir_non_dot_dir(self):
     filename = '.git'
     self.assertFalse(FileUtil.is_dot_dir(filename))
Пример #16
0
 def test_is_hidden_double_dot(self):
     filename = '.'
     self.assertFalse(FileUtil.is_hidden(filename))
Пример #17
0
 def test_is_hidden_hidden_file(self):
     filename = '.filename.txt'
     self.assertTrue(FileUtil.is_hidden(filename))
Пример #18
0
 def test_get_extension_has_txt_extension(self):
     filename = 'filename.txt'
     self.assertEqual(FileUtil.get_extension(filename), 'txt')
Пример #19
0
 def test_is_hidden_double_dot(self):
     filename = '.'
     self.assertFalse(FileUtil.is_hidden(filename))
Пример #20
0
 def test_get_extension_has_txt_extension(self):
     filename = 'filename.txt'
     self.assertEqual(FileUtil.get_extension(filename), 'txt')