From 24f9f46df3e00d6842b35c9d5ca6946122a5e851 Mon Sep 17 00:00:00 2001 From: PaulHancock Date: Mon, 28 Aug 2017 22:23:51 +0800 Subject: [PATCH] test that islands are actually being characterised --- tests/test_source_finder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_source_finder.py b/tests/test_source_finder.py index b789cec3..5172bdc2 100644 --- a/tests/test_source_finder.py +++ b/tests/test_source_finder.py @@ -59,6 +59,10 @@ def test_find_sources(): # now with some options found2 = sfinder.find_sources_in_image(filename, doislandflux=True, outfile=open('dlme', 'w'), nonegative=False) assert len(found2) == 116 + isle1 = found2[1] + assert isle1.int_flux > 0 + assert isle1.max_angular_size > 0 + assert isle1.pixels == 21 # we should have written some output file assert os.path.exists('dlme') os.remove('dlme')