def test_removeStory(self): storyteller.addStory("test") storyteller.removeStory("test") self.assertEqual(storyteller.returnStory("test"), None)
def test_returnStory(self): storyteller.addStory("test") storyteller.addStory("hello") self.assertEqual(storyteller.returnStory("test")['title'], "test")
def test_addLine(self): storyteller.addStory("test") storyteller.addLine("test", "testline") lines = storyteller.returnStory("test")['lines'] self.assertEqual(lines[0], "testline")