def testNametoLevelInteger(self): """Test calling _name_to_level() with an integer.""" self.assertEquals(nxlog.LOG_DEBUG, nxlog._name_to_level(nxlog.LOG_DEBUG))
def testNametoLevelNumberString(self): """Test calling _name_to_level() with an integer represented as a string""" self.assertEquals(nxlog.LOG_DEBUG, nxlog._name_to_level("7"))
def testNameToLevelNameString(self): """Test calling _name_to_level with a string specifying a level""" self.assertEquals(nxlog.LOG_DEBUG, nxlog._name_to_level("DEBUG"))
def testNametoLevelNumberString(self): """Test calling _name_to_level() with an integer represented as a string""" self.assertEquals(nxlog.LOG_DEBUG, nxlog._name_to_level('7'))
def testNameToLevelNameString(self): """Test calling _name_to_level with a string specifying a level""" self.assertEquals(nxlog.LOG_DEBUG, nxlog._name_to_level('DEBUG'))