示例#1
0
 def test_format_from_filename_TypeError(self):
     with pytest.raises(TypeError):
         util.format_from_filename_extension(1234)
示例#2
0
 def test_compressed(self, extention, compression_extention):
     """Check that format suffixed by compressed extension works"""
     file_name = 'file.{0}{1}'.format(extention, compression_extention)
     a = util.format_from_filename_extension(file_name)
     # expect answer to always be uppercase
     assert a == extention.upper()
示例#3
0
    def _check_compressed(self, f, fn):
        """Check that format suffixed by compressed extension works"""
        a = util.format_from_filename_extension(fn)

        assert_equal(a, f)
示例#4
0
    def _check_compressed(self, f, fn):
        """Check that format suffixed by compressed extension works"""
        a = util.format_from_filename_extension(fn)

        assert a == f
示例#5
0
 def _check_compressed(self, f, fn):
     """Check that format suffixed by compressed extension works"""
     a = util.format_from_filename_extension(fn)
     # expect answer to always be uppercase
     assert_equal(a, f.upper())
示例#6
0
 def _check_compressed(self, f, fn):
     """Check that format suffixed by compressed extension works"""
     a = util.format_from_filename_extension(fn)
     # expect answer to always be uppercase
     assert_equal(a, f.upper())