We usually do this by using the following function:

```
from astropy.tests.compat import assert_allclose
assert_allclose(intflux.value, check.value)
```

You can specify e.g. ``rtol=1e-2`` in the ``assert_allclose`` call if you want them to be accurate to 1%