def test_reading_undocumented_feature_flags(self): """Reading undocumented feature flags records them as undocumented.""" controller = NullFeatureController() # This test assumes there is no flag named "does-not-exist". assert 'does-not-exist' not in documented_flags controller.getFlag('does-not-exist') self.assertThat(undocumented_flags, Contains('does-not-exist'))
def test_reading_undocumented_feature_flags(self): """Reading undocumented feature flags records them as undocumented.""" controller = NullFeatureController() # This test assumes there is no flag named "does-not-exist". assert 'does-not-exist' not in documented_flags controller.getFlag('does-not-exist') self.assertThat(undocumented_flags, Contains('does-not-exist'))
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')))