예제 #1
0
    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, "")
예제 #2
0
 def test_change_unknown_change_type(self):
     config = LoggingConfiguration()
     with self.assertRaises(NotImplementedError):
         config.changed("FOOBAR", "", "")