Ejemplo n.º 1
0
 def simple_ordering_by_bucket_number(self):
     eq_(
         latest_feature_bucket(
             dict.fromkeys([
                 'unreleased_1_feature',
                 'unreleased_2_feature',
             ])), 'unreleased_2_feature')
Ejemplo n.º 2
0
 def simple_ordering_by_bucket_number(self):
     eq_(
         latest_feature_bucket(dict.fromkeys([
             'unreleased_1_feature',
             'unreleased_2_feature',
         ])),
         'unreleased_2_feature'
     )
Ejemplo n.º 3
0
 def ordering_goes_by_numeric_not_lexical_order(self):
     eq_(
         latest_feature_bucket(
             dict.fromkeys([
                 'unreleased_1_feature',
                 # Yes, releases like 10.x or 17.x are unlikely, but definitely
                 # plausible - think modern Firefox for example.
                 'unreleased_10_feature',
                 'unreleased_23_feature',
                 'unreleased_202_feature',
                 'unreleased_17_feature',
                 'unreleased_2_feature',
             ])),
         'unreleased_202_feature')
Ejemplo n.º 4
0
 def ordering_goes_by_numeric_not_lexical_order(self):
     eq_(
         latest_feature_bucket(dict.fromkeys([
             'unreleased_1_feature',
             # Yes, releases like 10.x or 17.x are unlikely, but definitely
             # plausible - think modern Firefox for example.
             'unreleased_10_feature',
             'unreleased_23_feature',
             'unreleased_202_feature',
             'unreleased_17_feature',
             'unreleased_2_feature',
         ])),
         'unreleased_202_feature'
     )
Ejemplo n.º 5
0
 def base_case_of_single_release_family(self):
     eq_(latest_feature_bucket(dict.fromkeys(['unreleased_1_feature'])),
         'unreleased_1_feature')
Ejemplo n.º 6
0
 def base_case_of_single_release_family(self):
     eq_(
         latest_feature_bucket(dict.fromkeys(['unreleased_1_feature'])),
         'unreleased_1_feature'
     )