def test_context2(self): todo = TodoBase("(C) Foo @Bar+Baz") self.assertEqual(len(todo.contexts()), 1) self.assertIn('Bar+Baz', todo.contexts())
def test_context1(self): todo = TodoBase("(C) Foo @Bar @Baz @Bar:") self.assertEqual(len(todo.contexts()), 2) self.assertIn('Bar', todo.contexts()) self.assertIn('Baz', todo.contexts())