def test_needed_settings(self): self.section.append(Setting('use_spaces', 'true')) needed_settings = self.uut.get_non_optional_settings() self.assertEqual(len(needed_settings), 1 + len(SpacingHelper.get_non_optional_settings())) self.assertIn('use_spaces', needed_settings)
def test_needed_settings(self): self.section.append(Setting("use_spaces", "true")) needed_settings = self.uut.get_non_optional_settings() self.assertEqual(len(needed_settings), 1 + len(SpacingHelper.get_non_optional_settings())) self.assertIn("use_spaces", needed_settings)