@@ -0,0 +1,1380 @@
+# -*- coding: utf-8 -*-%0A%0A%22%22%22%0A    radish%0A    ~~~~~~%0A%0A    Behavior Driven Development tool for Python - the root from red to green%0A%0A    Copyright: MIT, Timo Furrer %3Ctuxtimo@gmail.com%3E%0A%22%22%22%0A%0A%0Afrom radish.background import Background%0Afrom radish.stepmodel import Step%0A%0A%0Adef test_creating_simple_background():%0A    %22%22%22%0A    Test creating a simple Background%0A    %22%22%22%0A    # given & when%0A    background = Background('Background', 'I am a Background', 'foo.feature', 1, parent=None)%0A%0A    # then%0A    assert background.id is None%0A    assert background.keyword == 'Background'%0A    assert background.sentence == 'I am a Background'%0A    assert background.path == 'foo.feature'%0A    assert background.line == 1%0A    assert background.parent is None%0A%0A%0Adef test_creating_a_concrete_background_instance():%0A    %22%22%22%0A    Test creating a concrete Background instance%0A    %22%22%22%0A    # given & when%0A    background = Background('Background', 'I am a Background', 'foo.feature', 1, parent=None)%0A    # add some Steps%0A    background.steps.append(%0A        Step(1, 'Foo', 'foo.feature', 2, background, False)%0A    )%0A    background.steps.append(%0A        Step(2, 'Foo', 'foo.feature', 3, background, False)%0A    )%0A%0A    # when%0A    instance = background.create_instance()%0A%0A    # then%0A    assert len(instance.steps) == 2%0A    assert background.steps%5B0%5D != instance.steps%5B0%5D%0A    assert background.steps%5B1%5D != instance.steps%5B1%5D%0A

Add pytest unit test for Background model. Refs #142