def test_list_samplers(): """Ensure list_samplers returns a list.""" samplers = ui.list_samplers() assert isinstance(samplers, list) assert len(samplers) > 0
def test_list_samplers_contents(): """Are the expected values included""" # Test that the expected values exist in this list, # but do not enforce these are the only values. # samplers = ui.list_samplers() for expected in ['mh', 'metropolismh']: assert expected in samplers