Exemple #1
0
 def test_format_from_filename_TypeError(self):
     with pytest.raises(TypeError):
         util.format_from_filename_extension(1234)
Exemple #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()
    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)
Exemple #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
Exemple #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())
Exemple #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())