def test_appver_long(self): too_big = vnum(vint(MAXVERSION + 1)) just_right = vnum(vint(MAXVERSION)) assert self.check_appver_filters(too_big, floor_version(just_right)), ( 'All I ask is do not crash') eq_(self.check_appver_filters('9999999', '9999999.0'), [{'text': u'Firefox 9999999.0', 'selected': True, 'urlparams': {'appver': '9999999.0'}, 'children': []}, {'text': u'Firefox 5.0', 'selected': False, 'urlparams': {'appver': '5.0'}, 'children': []}]) eq_(self.check_appver_filters('99999999', '99999999.0'), [{'text': u'Firefox 99999999.0', 'selected': True, 'urlparams': {'appver': '99999999.0'}, 'children': []}, {'text': u'Firefox 5.0', 'selected': False, 'urlparams': {'appver': '5.0'}, 'children': []}])
def test_appver_long(self): too_big = vnum(vint(MAXVERSION + 1)) just_right = vnum(vint(MAXVERSION)) assert self.check_appver_filters(too_big, floor_version(just_right)), "All I ask is do not crash" eq_( self.check_appver_filters("9999999", "9999999.0"), [ {"text": u"Firefox 9999999.0", "selected": True, "urlparams": {"appver": "9999999.0"}, "children": []}, {"text": u"Firefox 5.0", "selected": False, "urlparams": {"appver": "5.0"}, "children": []}, ], ) eq_( self.check_appver_filters("99999999", "99999999.0"), [ { "text": u"Firefox 99999999.0", "selected": True, "urlparams": {"appver": "99999999.0"}, "children": [], }, {"text": u"Firefox 5.0", "selected": False, "urlparams": {"appver": "5.0"}, "children": []}, ], )
def test_appver_long(self): too_big = vnum(vint(MAXVERSION + 1)) just_right = vnum(vint(MAXVERSION)) self.check_appver_filters(too_big, floor_version(just_right)) self.check_appver_filters("9999999", "9999999.0") self.check_appver_filters("99999999", "99999999.0")
def test_appver_long(self): too_big = vnum(vint(MAXVERSION + 1)) just_right = vnum(vint(MAXVERSION)) self.check_appver_filters(too_big, floor_version(just_right)) self.check_appver_filters('9999999', '9999999.0') self.check_appver_filters('99999999', '99999999.0')
def test_appver_long(self): too_big = vnum(vint(sys.maxint + 1)) just_right = vnum(vint(sys.maxint)) self.check_appver_filters(too_big, floor_version(just_right)) self.check_appver_filters('9999999', '9999999.0') self.check_appver_filters('99999999', '99999999.0')