python
from java.nio import ByteBuffer
buffer = ByteBuffer.allocate(10)
buffer.put("Hello")
buffer.put("Jython")
buffer.flip()
python
import ConfigParser
config = ConfigParser.RawConfigParser()
config.read("config.ini")
database = config.get("Database", "name")
username = config.get("Database", "username")
password = config.get("Database", "password")
print(database, username, password)
python
from org.junit import Test
from org.junit.Assert import assertTrue
class MyTest(object):
@Test
def test_something(self):
assertTrue(2 + 2 == 4)