Cook sausages in a frying pan. Then put them in a baking tray and put in 180C (360C) preheated oven for about 15 minutes. In the same frying pan, put chopped onion, chili pepper and cook for a few minutes.
Then mince garlic and add into same frying pan. Then pour canned tomatoes. Cook on a low heat for about 5 minutes, while sausage will become thick. Add some basil, salt, ground pepper and sugar.
Finally, add drained beans and cook for a little, that beans becomes warm. When serving, season with some parsley. Enjoy it!