def test_change_type_assert_missing_value(self): config = LoggingConfiguration() with self.assertRaises(AssertionError): config.changed(LoggingConfiguration.MODIFIED, "") with self.assertRaises(AssertionError): config.changed(LoggingConfiguration.CREATED, "")
def test_change_unknown_change_type(self): config = LoggingConfiguration() with self.assertRaises(NotImplementedError): config.changed("FOOBAR", "", "")