def test_method_extname_3(): ad = AstroData(TESTFILE) with pytest.raises(SingleHDUMemberExcept): ad.extname()
def test_method_extname_1(): ad = AstroData(TESTFILE2) # Single 'SCI' ext assert isinstance(ad.extname(), str)
def test_method_extname_2(): ad = AstroData(TESTFILE2) assert ad.extname() == 'SCI'
def test_method_rename_ext_3(): ad = AstroData(TESTFILE2) # Single 'SCI' ext ad.rename_ext("FOO") assert ad.extname() == "FOO"
def test_method_rename_ext_4(): ad = AstroData(TESTFILE2) ad.rename_ext("FOO", ver=99) assert ad.extname() == "FOO" assert ad.extver() == 99