test_h0_posterior

Module Contents

Classes

TestH0Posterior A suite of tests verifying that the simple MC sampling of the H0 Posterior is correct
class test_h0_posterior.TestH0Posterior(methodName='runTest')[source]

Bases: unittest.TestCase

A suite of tests verifying that the simple MC sampling of the H0 Posterior is correct

classmethod setUpClass(cls)[source]

Hook method for setting up class fixture before running tests in the class.

setUp(self)[source]

Hook method for setting up the test fixture before exercising it.

test_H0Posterior_transformed_kappa_sampling(self)[source]

Test sampling of transformed kappa

test_H0Posterior_original_kappa_sampling(self)[source]

Test sampling of original kappa

test_H0Posterior_H0_sampling(self)[source]

Test sampling of H0

test_H0Posterior_format_lens_model(self)[source]

Test if the formatted lens model (nesting of the lens model dictionary) can be used as input to TDCosmography

test_H0Posterior_H0_recovery_true_kappa_time_delays_lens_model(self)[source]

Test if true H0 is recovered if true lens model, kappa, and time delays are input

test_chuck_images(self)[source]

Test if the correct images are removed in the case of extra image detections