def test_format_from_filename_TypeError(self): with pytest.raises(TypeError): util.format_from_filename_extension(1234)
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)
def _check_compressed(self, f, fn): """Check that format suffixed by compressed extension works""" a = util.format_from_filename_extension(fn) assert a == f
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())
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())