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"))
Example #4
0
  def testNametoLevelInteger(self):
    """Test calling _name_to_level() with an integer."""

    self.assertEquals(nxlog.LOG_DEBUG, nxlog._name_to_level(nxlog.LOG_DEBUG))
Example #5
0
  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'))
Example #6
0
  def testNameToLevelNameString(self):
    """Test calling _name_to_level with a string specifying a level"""

    self.assertEquals(nxlog.LOG_DEBUG, nxlog._name_to_level('DEBUG'))