def test_prefixes(self): timekeeper.ACTIVITIES = ["testing a", "testing b", "programming a", "programming b", "other"] self.assertEqual(["programming", "testing"], sorted(list(timekeeper.prefixes())))
def test_prefixes_empty(self): timekeeper.ACTIVITIES = ["testing", "programming", "other"] self.assertEqual(set(), timekeeper.prefixes())
def test_prefixes_default(self): self.assertEqual({"testing"}, timekeeper.prefixes())