Esempio n. 1
0
    def test_project2(self):
        todo = TodoBase("(C) Foo +Bar+Baz")

        self.assertEqual(len(todo.projects()), 1)
        self.assertIn('Bar+Baz', todo.projects())
Esempio n. 2
0
    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())