def test_transform_path_pri():
 frame_transform_graph.invalidate_cache()
 (tpath, td) = frame_transform_graph.find_shortest_path(ICRS, Galactic)
 assert (tpath == [ICRS, FK5, Galactic])
 assert (td == 2)
 (tpath, td) = frame_transform_graph.find_shortest_path(FK4, Galactic)
 assert (tpath == [FK4, FK4NoETerms, Galactic])
 assert (td == 2)

def test_transform_path_pri ( ) : frame_transform_graph . invalidate_cache ( ) ( tpath , td ) = frame_transform_graph . find_shortest_path ( ICRS , Galactic ) assert ( tpath == [ ICRS , FK5 , Galactic ] ) assert ( td == 2 ) ( tpath , td ) = frame_transform_graph . find_shortest_path ( FK4 , Galactic ) assert ( tpath == [ FK4 , FK4NoETerms , Galactic ] ) assert ( td == 2 )
this checks that the transformation path prioritization works by making sure the icrs -> gal transformation always goes through fk5 and not fk4 .