def test_get_telescope(): for inst in pyuvdata.known_telescopes(): telescope_obj = pyuvdata.get_telescope(inst) assert telescope_obj.telescope_name == inst
def test_known_telescopes(): """Test known_telescopes function returns expected results.""" nt.assert_equal(pyuvdata.known_telescopes().sort(), expected_known_telescopes.sort())
def test_known_telescopes(): """Test known_telescopes function returns expected results.""" assert sorted( pyuvdata.known_telescopes()) == sorted(expected_known_telescopes)
def test_known_telescopes(): """Test known_telescopes function returns expected results.""" # using np.sort here and casting to list instead of .sort() since .sort() acts inplace and returns None assert np.sort(pyuvdata.known_telescopes()).tolist() == np.sort( expected_known_telescopes).tolist()