import unittest
import logging
from jyven import maven


class TestJyven(unittest.TestCase):
    """Run as e.g. `jython -m unittest jyven_test`."""

    def test_load(self):
        logging.basicConfig(level=logging.DEBUG)
        maven('commons-lang:commons-lang:2.6')
        from org.apache.commons.lang.math import JVMRandom
        self.assertTrue(isinstance(JVMRandom().nextDouble(), float))

import unittest
import logging
from jyven import maven

logging.basicConfig(level=logging.DEBUG)


class TestJyven(unittest.TestCase):
    """Run as e.g. `jython -m unittest jyven_test`."""

    def test_load(self):
        maven('commons-lang:commons-lang:2.6')
        from org.apache.commons.lang.math import JVMRandom
        self.assertTrue(isinstance(JVMRandom().nextDouble(), float))

Move test logging config to top of module
Move test logging config to top of module
