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