def test_project2(self): todo = TodoBase("(C) Foo +Bar+Baz") self.assertEqual(len(todo.projects()), 1) self.assertIn('Bar+Baz', todo.projects())
def test_project1(self): todo = TodoBase("(C) Foo +Bar +Baz +Bar:") self.assertEqual(len(todo.projects()), 2) self.assertIn('Bar', todo.projects()) self.assertIn('Baz', todo.projects())