<s> from nose . tools import eq_ <EOL> from kitsune . products . tests import ProductFactory , VersionFactory <EOL> from kitsune . sumo . tests import TestCase <EOL> from kitsune . wiki . showfor import showfor_data <EOL> class ShowforDataTests ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_all_versions ( self ) : <EOL> """<STR_LIT>""" <EOL> prod = ProductFactory ( ) <EOL> VersionFactory ( visible = True , product = prod ) <EOL> VersionFactory ( visible = False , product = prod ) <EOL> data = showfor_data ( [ prod ] ) <EOL> eq_ ( len ( data [ '<STR_LIT>' ] [ prod . slug ] ) , <NUM_LIT:2> ) </s>
