protected void tearDown() throws Exception {
super.tearDown();
}
public void testAddLine() {
ps = new PySelection(new Document("line1\nline2\n"), new TextSelection(doc, 0, 0));
ps.addLine("foo", 0);
assertEquals("line1\nfoo\nline2\n", ps.getDoc().get());
ps = new PySelection(new Document("line1\n"), new TextSelection(doc, 0, 0));
ps.addLine("foo", 0);
assertEquals("line1\nfoo\n", ps.getDoc().get());
ps = new PySelection(new Document("line1"), new TextSelection(doc, 0, 0));
ps.addLine("foo", 0);
assertEquals("line1\nfoo\n", ps.getDoc().get().replace("\r\n", "\n"));
}