def test_reading_documented_feature_flags(self): """Reading documented flags does not record them as undocumented.""" controller = NullFeatureController() # Make sure there is no flag named "documented-flag-name" before we # start testing. assert 'documented-flag-name' not in documented_flags documented_flags.update(['documented-flag-name']) controller.getFlag('documented-flag-name') self.assertThat(undocumented_flags, Not(Contains('documented-flag-name')))
def test_reading_documented_feature_flags(self): """Reading documented flags does not record them as undocumented.""" controller = NullFeatureController() # Make sure there is no flag named "documented-flag-name" before we # start testing. assert 'documented-flag-name' not in documented_flags documented_flags.update(['documented-flag-name']) controller.getFlag('documented-flag-name') self.assertThat( undocumented_flags, Not(Contains('documented-flag-name')))
def clean_up_undocumented_flags(): # Put the saved undocumented flags back. undocumented_flags.clear() documented_flags.clear() undocumented_flags.update(saved_undocumented) documented_flags.update(saved_documented)